> ## Documentation Index
> Fetch the complete documentation index at: https://docs.stackone.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Microsoft Excel

> 101 actions available for Microsoft Excel through StackOne. Use via Actions RPC, Toolset SDK, MCP, or A2A.

export const GettingStarted = ({connector}) => {
  const linkStyle = {
    textDecoration: 'none'
  };
  const authConfigGuides = connector?.authentication?.filter(a => a?.setupGuide) ?? [];
  const linkAccountGuides = connector?.authentication?.filter(a => a?.configGuide) ?? [];
  return <div style={{
    marginTop: '32px',
    paddingTop: '24px',
    borderTop: '1px solid #e2e8f0'
  }}>
      <div style={{
    fontSize: '20px',
    fontWeight: '600',
    marginBottom: '12px'
  }}>Getting Started</div>
      <Steps>
        <Step title="Create or Select a Project">
          Set up a new project or select an existing one. See the <a href="/guides/managing-projects" style={linkStyle}>Projects Guide</a>.
        </Step>
        <Step title="Configure the Connector">
          <>
            Enable the connector and set up auth configuration in your project. See <a href="/guides/explore-connectors" style={linkStyle}>Managing Connectors</a>.
            {authConfigGuides.length > 0 && <>
              <Columns cols={2}>
                {authConfigGuides.map(auth => <Card title="Auth Config" href={`/${auth.setupGuide}`} icon={connector.icon} horizontal>
                    {connector.name} - {auth.label}
                  </Card>)}
              </Columns> 
              </>}
          </>
        </Step>
        <Step title="Link an Account">
          <>
            Connect an account using <a href="/guides/embedding-stackone-hub" style={linkStyle}>StackOne Hub</a> or <a href="/guides/auth-link" style={linkStyle}>Auth Link</a>.
            {linkAccountGuides.length > 0 && <>
                <Columns cols={2}>
                  {linkAccountGuides.map(auth => <Card title="Link Account" href={`/${auth.configGuide}`} icon={connector.icon} horizontal>
                      {connector.name} - {auth.label}
                    </Card>)}
                </Columns>
              </>}
          </>
        </Step>
        <Step title="Use Actions">
          <>
            Invoke actions using one of the methods below:
            <ul style={{
    marginTop: '8px',
    paddingLeft: '20px'
  }}>
              <li style={{
    marginBottom: '4px'
  }}><a href="/mcp/quickstart" style={linkStyle}>MCP</a> – Model Context Protocol for AI assistants</li>
              <li style={{
    marginBottom: '4px'
  }}><a href="/a2a/quickstart" style={linkStyle}>A2A</a> – Agent-to-Agent protocol</li>
              <li style={{
    marginBottom: '4px'
  }}><a href="/agents/typescript/introduction" style={linkStyle}>AI Toolset (TypeScript)</a> – TypeScript SDK for AI agents</li>
              <li style={{
    marginBottom: '4px'
  }}><a href="/agents/python/introduction" style={linkStyle}>AI Toolset (Python)</a> – Python SDK for AI agents</li>
              <li style={{
    marginBottom: '4px'
  }}><a href="/platform/api-reference/actions/make-an-rpc-call-to-an-action" style={linkStyle}>Actions RPC</a> – Direct API calls</li>
              <li style={{
    marginBottom: '4px'
  }}><a href="/guides/playground" style={linkStyle}>Playground</a> – Test actions in the dashboard</li>
            </ul>
          </>
        </Step>
      </Steps>
    </div>;
};

export const ActionsLibrary = ({search, setSearch, filtered, sharedStyles = {}, KeyCell, ScopesCell, availableScopes, selectedScopes, setSelectedScopes}) => {
  const libraryStyles = {
    section: {
      marginTop: '24px',
      marginBottom: '16px'
    },
    sectionTitle: {
      fontSize: '18px',
      fontWeight: '600',
      marginBottom: '12px'
    },
    filterRow: {
      display: 'flex',
      gap: '12px',
      marginBottom: '12px',
      alignItems: 'stretch'
    },
    count: {
      color: '#64748b',
      fontSize: '12px',
      marginBottom: '8px'
    },
    scopesFilterRow: {
      marginBottom: '12px'
    },
    scopesDropdown: {
      display: 'inline-block',
      fontSize: '12px',
      color: '#475569'
    },
    scopesSummary: {
      cursor: 'pointer',
      padding: '6px 10px',
      borderRadius: '999px',
      border: '1px solid #e2e8f0',
      backgroundColor: '#ffffff',
      listStyle: 'none',
      display: 'inline-flex',
      alignItems: 'center',
      gap: '6px'
    },
    scopesSummaryLabel: {
      margin: 0,
      padding: 0
    },
    scopesChipsContainer: {
      marginTop: '8px',
      padding: '4px 2px 2px',
      display: 'flex',
      flexWrap: 'wrap',
      gap: '6px',
      maxHeight: '90px',
      overflowY: 'auto'
    },
    scopeChip: {
      borderRadius: '999px',
      border: '1px solid #e2e8f0',
      padding: '4px 8px',
      fontSize: '11px',
      backgroundColor: '#f8fafc',
      color: '#475569',
      cursor: 'pointer'
    },
    scopeChipActive: {
      backgroundColor: '#dbeafe',
      borderColor: '#2563eb',
      color: '#1d4ed8'
    },
    tableContainer: {
      maxHeight: '500px',
      overflowY: 'auto',
      overflowX: 'auto',
      border: '1px solid #e2e8f0',
      borderRadius: '8px',
      fontSize: '13px'
    },
    gridTable: {
      display: 'grid',
      minWidth: '600px',
      gridTemplateColumns: '200px 1fr'
    },
    gridTableWithScopes: {
      gridTemplateColumns: '200px 1fr 150px'
    },
    gridHeader: {
      display: 'contents'
    },
    gridHeaderCell: {
      position: 'sticky',
      top: 0,
      backgroundColor: '#f8fafc',
      padding: '10px 12px',
      fontWeight: '600',
      borderBottom: '1px solid #e2e8f0',
      zIndex: 1
    },
    gridRow: {
      display: 'contents'
    },
    gridCellAction: {
      padding: '10px 12px',
      fontWeight: '500',
      borderBottom: '1px solid #f1f5f9'
    },
    gridCellKey: {
      padding: '10px 12px',
      borderBottom: '1px solid #f1f5f9'
    },
    gridCellScopes: {
      padding: '10px 12px',
      borderBottom: '1px solid #f1f5f9',
      color: '#475569',
      fontSize: '12px'
    },
    gridCellDescription: {
      padding: '10px 12px',
      color: '#64748b',
      borderBottom: '1px solid #f1f5f9'
    }
  };
  const styles = {
    ...libraryStyles,
    ...sharedStyles
  };
  const safeAvailableScopes = Array.isArray(availableScopes) ? availableScopes : [];
  const safeSelectedScopes = Array.isArray(selectedScopes) ? selectedScopes : [];
  const hasScopesColumn = safeAvailableScopes.length > 0;
  const hasScopeFilter = safeAvailableScopes.length > 0 && typeof setSelectedScopes === 'function';
  const ScopesCellComponent = ScopesCell || (() => null);
  return <div style={styles.section}>
      <div style={styles.sectionTitle}>Actions</div>
      <div style={styles.filterRow}>
        <SearchBar value={search} onChange={setSearch} placeholder="Search actions" />
        {hasScopeFilter && <FilterDropdown label="Scopes" items={safeAvailableScopes} selectedItems={safeSelectedScopes} onChange={setSelectedScopes} searchPlaceholder="Search scopes..." emptyLabel="No scopes found" />}
      </div>
      <div style={styles.count}>
        {filtered.length === 0 ? '0 actions found' : `${filtered.length} action${filtered.length !== 1 ? 's' : ''}`}
      </div>
      {}
      <div className="not-prose" style={styles.tableContainer}>
        <div style={{
    ...hasScopesColumn ? {
      ...styles.gridTable,
      ...styles.gridTableWithScopes
    } : styles.gridTable
  }}>
          {}
          <div style={styles.gridHeader}>
            <div style={styles.gridHeaderCell}>Action</div>
            <div style={styles.gridHeaderCell}>Description</div>
            {hasScopesColumn && <div style={styles.gridHeaderCell}>Required scopes</div>}
          </div>
          {}
          {filtered.map(a => <div key={a.id} style={styles.gridRow}>
              <div style={styles.gridCellAction}>
                <div>{a.label}</div>
                <div style={{
    marginTop: '4px'
  }}>
                  <KeyCell id={a.id} />
                </div>
              </div>
              <div style={styles.gridCellDescription}>{a.description}</div>
              {hasScopesColumn && <div style={styles.gridCellScopes}>
                  <ScopesCellComponent scopes={a.requiredScopes} actionId={a.id} />
                </div>}
            </div>)}
        </div>
      </div>
    </div>;
};

export const FilterDropdown = ({label, items, selectedItems, onChange, searchPlaceholder = 'Search...', emptyLabel = 'No items found', formatLabel}) => {
  const [dropdownOpen, setDropdownOpen] = React.useState(false);
  const [search, setSearch] = React.useState('');
  const [hoveredItem, setHoveredItem] = React.useState(null);
  const dropdownRef = React.useRef(null);
  const styles = {
    dropdownContainer: {
      position: 'relative'
    },
    dropdownTrigger: {
      display: 'flex',
      alignItems: 'center',
      gap: '8px',
      padding: '10px 14px',
      borderRadius: '8px',
      border: '1px solid #e2e8f0',
      fontSize: '14px',
      backgroundColor: 'white',
      cursor: 'pointer',
      whiteSpace: 'nowrap',
      minWidth: '160px',
      justifyContent: 'space-between'
    },
    dropdownTriggerActive: {
      borderColor: '#068F56',
      backgroundColor: '#f0fdf4'
    },
    dropdownMenu: {
      position: 'absolute',
      top: '100%',
      right: 0,
      marginTop: '4px',
      backgroundColor: 'white',
      border: '1px solid #e2e8f0',
      borderRadius: '8px',
      boxShadow: '0 4px 12px rgba(0,0,0,0.1)',
      zIndex: 50,
      minWidth: '220px',
      maxHeight: '320px',
      display: 'flex',
      flexDirection: 'column'
    },
    dropdownHeader: {
      padding: '8px 12px',
      borderBottom: '1px solid #e2e8f0'
    },
    selectActions: {
      display: 'flex',
      alignItems: 'center',
      gap: '8px',
      marginTop: '6px',
      fontSize: '12px'
    },
    selectActionBtn: {
      background: 'none',
      border: 'none',
      color: '#64748b',
      cursor: 'pointer',
      padding: '2px 4px',
      fontSize: '12px'
    },
    dropdownSearchInput: {
      width: '100%',
      padding: '8px 10px',
      borderRadius: '6px',
      border: '1px solid #e2e8f0',
      fontSize: '13px',
      outline: 'none',
      backgroundColor: '#ffffff'
    },
    dropdownList: {
      overflowY: 'auto',
      maxHeight: '220px',
      padding: '4px 0'
    },
    dropdownItem: {
      display: 'flex',
      alignItems: 'center',
      gap: '10px',
      padding: '8px 12px',
      cursor: 'pointer',
      fontSize: '13px',
      color: '#374151',
      transition: 'background-color 0.1s'
    },
    dropdownItemHover: {
      backgroundColor: '#f8fafc'
    },
    checkbox: {
      width: '16px',
      height: '16px',
      borderRadius: '4px',
      border: '2px solid #d1d5db',
      display: 'flex',
      alignItems: 'center',
      justifyContent: 'center',
      flexShrink: 0
    },
    checkboxChecked: {
      backgroundColor: '#068F56',
      borderColor: '#068F56'
    },
    checkmark: {
      color: 'white',
      fontSize: '10px',
      fontWeight: 'bold'
    },
    dropdownFooter: {
      padding: '8px 12px',
      borderTop: '1px solid #e2e8f0',
      display: 'flex',
      justifyContent: 'space-between',
      alignItems: 'center'
    },
    clearButton: {
      fontSize: '12px',
      color: '#64748b',
      cursor: 'pointer',
      padding: '4px 8px',
      borderRadius: '4px',
      border: 'none',
      background: 'none'
    },
    badge: {
      backgroundColor: '#068F56',
      color: 'white',
      fontSize: '11px',
      fontWeight: '600',
      padding: '2px 6px',
      borderRadius: '10px',
      marginLeft: '4px'
    },
    chevron: {
      fontSize: '10px',
      color: '#64748b',
      transition: 'transform 0.15s'
    },
    noResults: {
      padding: '12px',
      textAlign: 'center',
      color: '#64748b',
      fontSize: '13px'
    }
  };
  const safeSelected = Array.isArray(selectedItems) ? selectedItems : [];
  const formatItemLabel = item => {
    if (typeof formatLabel === 'function') {
      return formatLabel(item);
    }
    return item;
  };
  const filteredItems = React.useMemo(() => {
    if (!search) return items;
    const searchLower = search.toLowerCase();
    return items.filter(item => {
      const labelText = formatItemLabel(item);
      return labelText.toLowerCase().includes(searchLower);
    });
  }, [items, search, formatLabel]);
  const isSelected = item => safeSelected.includes(item);
  const toggleItem = item => {
    const next = isSelected(item) ? safeSelected.filter(v => v !== item) : [...safeSelected, item];
    onChange(next);
  };
  const clearFilters = () => {
    onChange([]);
  };
  const selectAll = () => {
    onChange(items);
  };
  React.useEffect(() => {
    const handleClickOutside = e => {
      if (dropdownRef.current && !dropdownRef.current.contains(e.target)) {
        setDropdownOpen(false);
        setSearch('');
        setHoveredItem(null);
      }
    };
    document.addEventListener('mousedown', handleClickOutside);
    return () => document.removeEventListener('mousedown', handleClickOutside);
  }, []);
  return <div style={styles.dropdownContainer} ref={dropdownRef}>
      <button type="button" onClick={() => setDropdownOpen(!dropdownOpen)} style={{
    ...styles.dropdownTrigger,
    ...safeSelected.length > 0 ? styles.dropdownTriggerActive : {}
  }}>
        <span>
          {label}
          {safeSelected.length > 0 && <span style={styles.badge}>{safeSelected.length}</span>}
        </span>
        <span style={{
    ...styles.chevron,
    transform: dropdownOpen ? 'rotate(180deg)' : 'rotate(0deg)'
  }}>
          ▼
        </span>
      </button>
      {dropdownOpen && <div style={styles.dropdownMenu}>
          <div style={styles.dropdownHeader}>
            <input type="text" placeholder={searchPlaceholder} value={search} onChange={e => setSearch(e.target.value)} style={styles.dropdownSearchInput} autoFocus />
            <div style={styles.selectActions}>
              <button type="button" onClick={selectAll} style={styles.selectActionBtn} onMouseEnter={e => {
    e.target.style.color = '#1e293b';
  }} onMouseLeave={e => {
    e.target.style.color = '#64748b';
  }}>
                Select all
              </button>
              <span style={{
    color: '#e2e8f0'
  }}>|</span>
              <button type="button" onClick={clearFilters} style={styles.selectActionBtn} onMouseEnter={e => {
    e.target.style.color = '#1e293b';
  }} onMouseLeave={e => {
    e.target.style.color = '#64748b';
  }}>
                Clear
              </button>
            </div>
          </div>
          <div style={styles.dropdownList}>
            {filteredItems.length === 0 ? <div style={styles.noResults}>{emptyLabel}</div> : filteredItems.map(item => <div key={item} onClick={() => toggleItem(item)} onMouseEnter={() => setHoveredItem(item)} onMouseLeave={() => setHoveredItem(null)} style={{
    ...styles.dropdownItem,
    ...hoveredItem === item ? styles.dropdownItemHover : {}
  }}>
                  <div style={{
    ...styles.checkbox,
    ...isSelected(item) ? styles.checkboxChecked : {}
  }}>
                    {isSelected(item) && <span style={styles.checkmark}>✓</span>}
                  </div>
                  <span>{formatItemLabel(item)}</span>
                </div>)}
          </div>
        </div>}
    </div>;
};

export const SearchBar = ({value, onChange, placeholder = 'Search...'}) => {
  const baseStyle = {
    padding: '10px 14px',
    borderRadius: '8px',
    border: '1px solid #e2e8f0',
    fontSize: '14px',
    outline: 'none',
    backgroundColor: '#fafafa',
    flex: 1,
    minWidth: 0
  };
  return <input type="text" placeholder={placeholder} value={value} onChange={e => onChange(e.target.value)} style={baseStyle} />;
};

export const ConnectorPage = ({connector}) => {
  const styles = {
    header: {
      display: 'flex',
      alignItems: 'center',
      gap: '12px',
      marginBottom: '24px'
    },
    tagsRow: {
      display: 'flex',
      flexWrap: 'wrap',
      gap: '6px',
      marginTop: '8px'
    },
    releaseTag: {
      display: 'inline-block',
      padding: '2px 8px',
      borderRadius: '4px',
      fontSize: '11px',
      fontWeight: '500'
    },
    betaTag: {
      backgroundColor: '#fef3c7',
      color: '#b45309'
    },
    previewTag: {
      backgroundColor: '#E1E9F4',
      color: '#0D58AE',
      border: '1px solid #BFD5F1'
    },
    categoryTag: {
      display: 'inline-block',
      padding: '2px 8px',
      borderRadius: '4px',
      fontSize: '11px',
      fontWeight: '500',
      backgroundColor: '#f1f5f9',
      color: '#475569'
    },
    icon: {
      width: '48px',
      height: '48px',
      borderRadius: '10px',
      backgroundColor: '#f8fafc',
      padding: '2px'
    },
    title: {
      fontSize: '24px',
      fontWeight: '600'
    },
    subtitle: {
      fontSize: '14px',
      color: '#64748b'
    },
    authDescription: {
      fontSize: '14px',
      color: '#64748b',
      marginTop: 0
    },
    sectionTitle: {
      fontSize: '18px',
      fontWeight: '600',
      marginBottom: '12px'
    },
    authList: {
      paddingLeft: '20px',
      color: '#374151'
    },
    codeWrapper: {
      position: 'relative',
      display: 'inline-flex',
      alignItems: 'center',
      maxWidth: '100%',
      cursor: 'pointer',
      overflowX: 'auto',
      overflowY: 'hidden',
      msOverflowStyle: 'none',
      scrollbarWidth: 'none'
    },
    code: {
      backgroundColor: '#f1f5f9',
      padding: '4px 8px',
      borderRadius: '4px',
      fontSize: '11px',
      color: '#475569',
      display: 'inline-block',
      whiteSpace: 'nowrap',
      transition: 'background-color 0.15s'
    },
    codeHover: {
      backgroundColor: '#e2e8f0'
    },
    codeCopied: {
      backgroundColor: '#d1fae5',
      color: '#065f46'
    },
    tooltip: {
      position: 'absolute',
      top: '100%',
      left: '50%',
      transform: 'translateX(-50%)',
      backgroundColor: '#1e293b',
      color: 'white',
      padding: '6px 10px',
      borderRadius: '6px',
      fontSize: '11px',
      whiteSpace: 'nowrap',
      marginTop: '6px',
      zIndex: 50,
      maxWidth: '300px',
      wordBreak: 'break-all'
    },
    tooltipArrow: {
      position: 'absolute',
      bottom: '100%',
      left: '50%',
      transform: 'translateX(-50%)',
      borderWidth: '5px',
      borderStyle: 'solid',
      borderColor: 'transparent transparent #1e293b transparent',
      zIndex: 50
    },
    tdDescription: {
      padding: '10px 12px',
      color: '#64748b',
      verticalAlign: 'top',
      maxWidth: '400px'
    }
  };
  const [search, setSearch] = React.useState('');
  const [copiedId, setCopiedId] = React.useState(null);
  const [selectedScopes, setSelectedScopes] = React.useState([]);
  const availableScopes = React.useMemo(() => {
    const set = new Set();
    connector.actions.forEach(a => {
      if (Array.isArray(a.requiredScopes)) {
        a.requiredScopes.forEach(s => {
          if (s) set.add(s);
        });
      }
    });
    return Array.from(set).sort();
  }, [connector.actions]);
  const filtered = React.useMemo(() => {
    const searchLower = search.toLowerCase();
    return connector.actions.filter(a => {
      const matchesSearch = a.label.toLowerCase().includes(searchLower) || a.description.toLowerCase().includes(searchLower) || a.id.toLowerCase().includes(searchLower);
      if (!matchesSearch) return false;
      if (selectedScopes.length === 0) return true;
      const scopes = Array.isArray(a.requiredScopes) ? a.requiredScopes : [];
      if (scopes.length === 0) return false;
      return selectedScopes.some(scope => scopes.includes(scope));
    });
  }, [connector.actions, search, selectedScopes]);
  const handleImageError = e => {
    e.target.style.display = 'none';
  };
  const formatCategoryLabel = cat => {
    const acronyms = ['ats', 'crm', 'hris', 'iam', 'lms'];
    if (acronyms.includes(cat.toLowerCase())) {
      return cat.toUpperCase();
    }
    return cat.replace(/_/g, ' ').replace(/\b\w/g, c => c.toUpperCase());
  };
  const ReleaseTag = () => {
    if (!connector.releaseStage || connector.releaseStage === 'ga') return null;
    const tagStyle = connector.releaseStage === 'beta' ? {
      ...styles.releaseTag,
      ...styles.betaTag
    } : {
      ...styles.releaseTag,
      ...styles.previewTag
    };
    return <span style={tagStyle}>
        {connector.releaseStage.charAt(0).toUpperCase() + connector.releaseStage.slice(1)}
      </span>;
  };
  const CategoryTags = () => {
    if (!connector.categories || connector.categories.length === 0) return null;
    return <>
        {connector.categories.map(cat => <span key={cat} style={styles.categoryTag}>
            {formatCategoryLabel(cat)}
          </span>)}
      </>;
  };
  const copyToClipboard = async (text, id) => {
    try {
      await navigator.clipboard.writeText(text);
      setCopiedId(id);
      setTimeout(() => setCopiedId(null), 1500);
    } catch (err) {
      console.error('Failed to copy:', err);
    }
  };
  const CopyChip = ({text, copyId}) => {
    const [isHovered, setIsHovered] = React.useState(false);
    const isCopied = copiedId === copyId;
    if (!text) {
      return null;
    }
    const codeStyle = {
      ...styles.code,
      ...isCopied ? styles.codeCopied : isHovered ? styles.codeHover : {}
    };
    return <div style={styles.codeWrapper} onMouseEnter={() => setIsHovered(true)} onMouseLeave={() => setIsHovered(false)} onClick={() => copyToClipboard(text, copyId)} title="">
        {(isHovered || isCopied) && <div style={styles.tooltip}>
            {isCopied ? '✓ Copied!' : 'Click to copy'}
            <div style={styles.tooltipArrow} />
          </div>}
        <code style={codeStyle}>
          {text}
        </code>
      </div>;
  };
  const KeyCell = ({id}) => <CopyChip text={id} copyId={id} />;
  const ScopesCell = ({scopes, actionId}) => {
    const scopeList = Array.isArray(scopes) ? scopes.filter(Boolean) : [];
    if (scopeList.length === 0) return null;
    return <div style={{
      display: 'flex',
      flexWrap: 'wrap',
      gap: '6px'
    }}>
        {scopeList.map(scope => <CopyChip key={scope} text={scope} copyId={`scopes:${actionId}:${scope}`} />)}
      </div>;
  };
  return <div>
      {}
      <div style={styles.header}>
        <img src={connector.icon} alt={connector.name} style={styles.icon} onError={handleImageError} />
        <div>
          <div style={styles.title}>{connector.name}</div>
          <div style={styles.subtitle}>
            {connector.actions.length} actions · {connector.authentication.length} auth method{connector.authentication.length !== 1 ? 's' : ''}
          </div>
          {connector.releaseStage && connector.releaseStage !== 'ga' || connector.categories && connector.categories.length > 0 ? <div style={styles.tagsRow}>
              <ReleaseTag />
              <CategoryTags />
            </div> : null}
        </div>
      </div>

      {}
      <div style={styles.sectionTitle}>Authentication</div>
      <Columns cols={2}>        
        {connector.authentication.length > 0 ? connector.authentication.map(auth => {
    const authLabel = auth?.label || '';
    const authDescription = auth?.description;
    const configGuide = auth?.configGuide;
    const setupGuide = auth?.setupGuide;
    const hasConfigGuide = !!configGuide;
    const hasSetupGuide = !!setupGuide;
    const hasAnyGuide = hasConfigGuide || hasSetupGuide;
    return <Card key={authLabel} title={authLabel}>
                {authDescription && <p style={{
      ...styles.authDescription,
      marginBottom: hasAnyGuide ? '8px' : 0
    }}>
                    {authDescription}
                  </p>}
                {hasAnyGuide && <span style={{
      fontSize: '14px'
    }}>
                    Guides: {hasSetupGuide && <a href={`/${setupGuide}`} style={{
      textDecoration: 'none'
    }}>Auth Config</a>}
                    {hasConfigGuide && hasSetupGuide && ', '}
                    {hasConfigGuide && <a href={`/${configGuide}`} style={{
      textDecoration: 'none'
    }}>Link Account</a>}
                  </span>}
              </Card>;
  }) : <>
            Contact StackOne for authentication details.
          </>}
      </Columns>

      {connector.documentation?.references?.length > 0 && <>
          <div style={styles.sectionTitle}>References</div>
          <Columns cols={2}>
            {connector.documentation.references.map(ref => {
    let safeHref;
    try {
      const parsed = new URL(ref.url);
      safeHref = parsed.protocol === 'http:' || parsed.protocol === 'https:' ? ref.url : undefined;
    } catch {
      safeHref = undefined;
    }
    return <Card key={`${ref.title}-${ref.url}`} title={ref.title} href={safeHref}>
                  {ref.description}
                </Card>;
  })}
          </Columns>
        </>}

      <ActionsLibrary search={search} setSearch={setSearch} filtered={filtered} sharedStyles={{
    sectionTitle: styles.sectionTitle
  }} KeyCell={KeyCell} ScopesCell={ScopesCell} availableScopes={availableScopes} selectedScopes={selectedScopes} setSelectedScopes={setSelectedScopes} />

      <GettingStarted connector={connector} />

    </div>;
};

export const connector = {
  "key": "microsoftexcel",
  "name": "Microsoft Excel",
  "icon": "https://stackone-logos.com/api/microsoft-excel/filled/png",
  "authentication": [{
    "label": "OAuth 2.0",
    "description": "Authenticate with your Microsoft Entra ID account to connect Microsoft Excel. You'll need to register an Azure applicati...",
    "configGuide": "connectors/microsoftexcel/guides/link-account/oauth-2-0",
    "setupGuide": "connectors/microsoftexcel/guides/auth-config/oauth-2-0"
  }],
  "actions": [{
    "id": "microsoftexcel_list_excel_files",
    "label": "List Excel Files",
    "description": "Search for Excel (.xlsx) files in the user's OneDrive or across all accessible drives",
    "requiredScopes": ["Files.Read"]
  }, {
    "id": "microsoftexcel_get_excel_file",
    "label": "Get Excel File",
    "description": "Get metadata for a specific Excel workbook DriveItem by ID",
    "requiredScopes": ["Files.Read"]
  }, {
    "id": "microsoftexcel_create_session",
    "label": "Create Workbook Session",
    "description": "Create a persistent or non-persistent workbook session",
    "requiredScopes": ["Files.ReadWrite"]
  }, {
    "id": "microsoftexcel_list_worksheets",
    "label": "List Worksheets",
    "description": "Retrieve the list of worksheets in an Excel workbook",
    "requiredScopes": ["Files.Read"]
  }, {
    "id": "microsoftexcel_get_worksheet",
    "label": "Get Worksheet",
    "description": "Retrieve a specific worksheet by ID or name",
    "requiredScopes": ["Files.Read"]
  }, {
    "id": "microsoftexcel_add_worksheet",
    "label": "Create Worksheet",
    "description": "Create a new worksheet in an Excel workbook",
    "requiredScopes": ["Files.ReadWrite"]
  }, {
    "id": "microsoftexcel_update_worksheet",
    "label": "Update Worksheet",
    "description": "Update properties of a worksheet (name, position, visibility)",
    "requiredScopes": ["Files.ReadWrite"]
  }, {
    "id": "microsoftexcel_delete_worksheet",
    "label": "Delete Worksheet",
    "description": "Delete a worksheet from an Excel workbook",
    "requiredScopes": ["Files.ReadWrite"]
  }, {
    "id": "microsoftexcel_get_worksheet_protection",
    "label": "Get Worksheet Protection",
    "description": "Retrieve the protection properties of a worksheet",
    "requiredScopes": ["Files.ReadWrite"]
  }, {
    "id": "microsoftexcel_protect_worksheet",
    "label": "Protect Worksheet",
    "description": "Protect a worksheet with optional protection options",
    "requiredScopes": ["Files.ReadWrite"]
  }, {
    "id": "microsoftexcel_unprotect_worksheet",
    "label": "Unprotect Worksheet",
    "description": "Unprotect a protected worksheet",
    "requiredScopes": ["Files.ReadWrite"]
  }, {
    "id": "microsoftexcel_list_tables",
    "label": "List Tables",
    "description": "Retrieve the list of tables in an Excel workbook",
    "requiredScopes": ["Files.Read"]
  }, {
    "id": "microsoftexcel_get_table",
    "label": "Get Table",
    "description": "Retrieve a specific table by ID or name",
    "requiredScopes": ["Files.Read"]
  }, {
    "id": "microsoftexcel_add_table",
    "label": "Create Table",
    "description": "Create a new table in an Excel workbook",
    "requiredScopes": ["Files.ReadWrite"]
  }, {
    "id": "microsoftexcel_update_table",
    "label": "Update Table",
    "description": "Update properties of a table (name, headers, totals, style)",
    "requiredScopes": ["Files.ReadWrite"]
  }, {
    "id": "microsoftexcel_delete_table",
    "label": "Delete Table",
    "description": "Delete a table from an Excel workbook",
    "requiredScopes": ["Files.ReadWrite"]
  }, {
    "id": "microsoftexcel_convert_table_to_range",
    "label": "Convert Table To Range",
    "description": "Convert a table to a normal range of cells",
    "requiredScopes": ["Files.ReadWrite"]
  }, {
    "id": "microsoftexcel_list_table_rows",
    "label": "List Table Rows",
    "description": "Retrieve the rows of a table in an Excel workbook",
    "requiredScopes": ["Files.Read"]
  }, {
    "id": "microsoftexcel_create_table_row",
    "label": "Add Table Row",
    "description": "Add a new row to a table in an Excel workbook",
    "requiredScopes": ["Files.ReadWrite"]
  }, {
    "id": "microsoftexcel_delete_table_row",
    "label": "Delete Table Row",
    "description": "Delete a row from a table by its zero-based index",
    "requiredScopes": ["Files.ReadWrite"]
  }, {
    "id": "microsoftexcel_list_table_columns",
    "label": "List Table Columns",
    "description": "Retrieve the columns of a table in an Excel workbook",
    "requiredScopes": ["Files.Read"]
  }, {
    "id": "microsoftexcel_add_table_column",
    "label": "Add Table Column",
    "description": "Add a new column to a table in an Excel workbook",
    "requiredScopes": ["Files.ReadWrite"]
  }, {
    "id": "microsoftexcel_delete_table_column",
    "label": "Delete Table Column",
    "description": "Delete a column from a table by its ID",
    "requiredScopes": ["Files.ReadWrite"]
  }, {
    "id": "microsoftexcel_get_table_data_body_range",
    "label": "Get Table Data Body Range",
    "description": "Retrieve the range associated with the data body of a table",
    "requiredScopes": ["Files.ReadWrite"]
  }, {
    "id": "microsoftexcel_get_table_header_row_range",
    "label": "Get Table Header Row Range",
    "description": "Retrieve the range associated with the header row of a table",
    "requiredScopes": ["Files.ReadWrite"]
  }, {
    "id": "microsoftexcel_get_table_range",
    "label": "Get Table Range",
    "description": "Retrieve the range associated with the entire table",
    "requiredScopes": ["Files.ReadWrite"]
  }, {
    "id": "microsoftexcel_get_table_total_row_range",
    "label": "Get Table Total Row Range",
    "description": "Retrieve the range associated with the totals row of a table",
    "requiredScopes": ["Files.ReadWrite"]
  }, {
    "id": "microsoftexcel_clear_table_filters",
    "label": "Clear Table Filters",
    "description": "Clear all filters currently applied on a table",
    "requiredScopes": ["Files.ReadWrite"]
  }, {
    "id": "microsoftexcel_get_table_sort",
    "label": "Get Table Sort",
    "description": "Retrieve the sort configuration of a table",
    "requiredScopes": ["Files.ReadWrite"]
  }, {
    "id": "microsoftexcel_apply_table_sort",
    "label": "Apply Table Sort",
    "description": "Apply a sort operation on a table",
    "requiredScopes": ["Files.ReadWrite"]
  }, {
    "id": "microsoftexcel_clear_table_sort",
    "label": "Clear Table Sort",
    "description": "Clear the current sort state of a table",
    "requiredScopes": ["Files.ReadWrite"]
  }, {
    "id": "microsoftexcel_reapply_table_sort",
    "label": "Reapply Table Sort",
    "description": "Reapply the current sort parameters to a table",
    "requiredScopes": ["Files.ReadWrite"]
  }, {
    "id": "microsoftexcel_apply_column_filter",
    "label": "Apply Column Filter",
    "description": "Apply filter criteria to a specific column in a table",
    "requiredScopes": ["Files.ReadWrite"]
  }, {
    "id": "microsoftexcel_clear_column_filter",
    "label": "Clear Column Filter",
    "description": "Clear the filter on a specific column in a table",
    "requiredScopes": ["Files.ReadWrite"]
  }, {
    "id": "microsoftexcel_get_table_sort_icon",
    "label": "Get Table Sort Icon",
    "description": "Retrieve the icon used in a table sort field",
    "requiredScopes": ["Files.ReadWrite"]
  }, {
    "id": "microsoftexcel_update_table_sort_icon",
    "label": "Update Table Sort Icon",
    "description": "Update the icon used in a table sort field",
    "requiredScopes": ["Files.ReadWrite"]
  }, {
    "id": "microsoftexcel_get_range",
    "label": "Get Range",
    "description": "Retrieve the properties and relationships of a cell range",
    "requiredScopes": ["Files.ReadWrite"]
  }, {
    "id": "microsoftexcel_get_used_range",
    "label": "Get Used Range",
    "description": "Retrieve the used range of a worksheet",
    "requiredScopes": ["Files.ReadWrite"]
  }, {
    "id": "microsoftexcel_get_cell",
    "label": "Get Cell",
    "description": "Retrieve a single cell based on row and column numbers within a range",
    "requiredScopes": ["Files.ReadWrite"]
  }, {
    "id": "microsoftexcel_get_range_column",
    "label": "Get Range Column",
    "description": "Retrieve a column contained in a range",
    "requiredScopes": ["Files.ReadWrite"]
  }, {
    "id": "microsoftexcel_get_columns_after",
    "label": "Get Columns After",
    "description": "Get a certain number of columns to the right of a given range",
    "requiredScopes": ["Files.ReadWrite"]
  }, {
    "id": "microsoftexcel_get_columns_before",
    "label": "Get Columns Before",
    "description": "Get a certain number of columns to the left of a given range",
    "requiredScopes": ["Files.ReadWrite"]
  }, {
    "id": "microsoftexcel_get_entire_column",
    "label": "Get Entire Column",
    "description": "Get the entire column of a range",
    "requiredScopes": ["Files.ReadWrite"]
  }, {
    "id": "microsoftexcel_get_entire_row",
    "label": "Get Entire Row",
    "description": "Get the entire row of a range",
    "requiredScopes": ["Files.ReadWrite"]
  }, {
    "id": "microsoftexcel_get_range_intersection",
    "label": "Get Range Intersection",
    "description": "Get the rectangular intersection of two ranges",
    "requiredScopes": ["Files.ReadWrite"]
  }, {
    "id": "microsoftexcel_get_last_cell",
    "label": "Get Last Cell",
    "description": "Get the last cell within a range",
    "requiredScopes": ["Files.ReadWrite"]
  }, {
    "id": "microsoftexcel_get_last_column",
    "label": "Get Last Column",
    "description": "Get the last column within a range",
    "requiredScopes": ["Files.ReadWrite"]
  }, {
    "id": "microsoftexcel_get_last_row",
    "label": "Get Last Row",
    "description": "Get the last row within a range",
    "requiredScopes": ["Files.ReadWrite"]
  }, {
    "id": "microsoftexcel_get_offset_range",
    "label": "Get Offset Range",
    "description": "Get a range offset from the specified range by a number of rows and columns",
    "requiredScopes": ["Files.ReadWrite"]
  }, {
    "id": "microsoftexcel_get_resized_range",
    "label": "Get Resized Range",
    "description": "Get a range expanded or contracted from the current range",
    "requiredScopes": ["Files.ReadWrite"]
  }, {
    "id": "microsoftexcel_get_range_row",
    "label": "Get Range Row",
    "description": "Get a row contained in a range",
    "requiredScopes": ["Files.ReadWrite"]
  }, {
    "id": "microsoftexcel_get_rows_above",
    "label": "Get Rows Above",
    "description": "Get a certain number of rows above a given range",
    "requiredScopes": ["Files.ReadWrite"]
  }, {
    "id": "microsoftexcel_get_rows_below",
    "label": "Get Rows Below",
    "description": "Get a certain number of rows below a given range",
    "requiredScopes": ["Files.ReadWrite"]
  }, {
    "id": "microsoftexcel_merge_range",
    "label": "Merge Range",
    "description": "Merge the range cells into one region in the worksheet",
    "requiredScopes": ["Files.ReadWrite"]
  }, {
    "id": "microsoftexcel_unmerge_range",
    "label": "Unmerge Range",
    "description": "Unmerge the range cells into separate cells",
    "requiredScopes": ["Files.ReadWrite"]
  }, {
    "id": "microsoftexcel_list_named_items",
    "label": "List Named Items",
    "description": "Retrieve the named items (named ranges and constants) in an Excel workbook",
    "requiredScopes": ["Files.ReadWrite"]
  }, {
    "id": "microsoftexcel_add_named_item",
    "label": "Add Named Item",
    "description": "Add a new named item (named range or constant) to an Excel workbook",
    "requiredScopes": ["Files.ReadWrite"]
  }, {
    "id": "microsoftexcel_get_named_item",
    "label": "Get Named Item",
    "description": "Retrieve the properties and relationships of a named item in an Excel workbook",
    "requiredScopes": ["Files.ReadWrite"]
  }, {
    "id": "microsoftexcel_update_named_item",
    "label": "Update Named Item",
    "description": "Update the properties of a named item in an Excel workbook",
    "requiredScopes": ["Files.ReadWrite"]
  }, {
    "id": "microsoftexcel_get_named_item_range",
    "label": "Get Named Item Range",
    "description": "Retrieve the range object associated with a named item",
    "requiredScopes": ["Files.ReadWrite"]
  }, {
    "id": "microsoftexcel_delete_named_item",
    "label": "Delete Named Item",
    "description": "Delete a named item from an Excel workbook",
    "requiredScopes": ["Files.ReadWrite"]
  }, {
    "id": "microsoftexcel_list_charts",
    "label": "List Charts",
    "description": "Retrieve the list of charts in a worksheet",
    "requiredScopes": ["Files.Read"]
  }, {
    "id": "microsoftexcel_get_chart",
    "label": "Get Chart",
    "description": "Retrieve a specific chart by ID or name",
    "requiredScopes": ["Files.Read"]
  }, {
    "id": "microsoftexcel_add_chart",
    "label": "Create Chart",
    "description": "Create a new chart in a worksheet",
    "requiredScopes": ["Files.ReadWrite"]
  }, {
    "id": "microsoftexcel_update_chart",
    "label": "Update Chart",
    "description": "Update properties of a chart (name, dimensions, position)",
    "requiredScopes": ["Files.ReadWrite"]
  }, {
    "id": "microsoftexcel_set_chart_position",
    "label": "Set Chart Position",
    "description": "Position a chart relative to cells on the worksheet",
    "requiredScopes": ["Files.ReadWrite"]
  }, {
    "id": "microsoftexcel_set_chart_data",
    "label": "Set Chart Data",
    "description": "Reset the source data for a chart",
    "requiredScopes": ["Files.ReadWrite"]
  }, {
    "id": "microsoftexcel_delete_chart",
    "label": "Delete Chart",
    "description": "Delete a chart from a worksheet",
    "requiredScopes": ["Files.ReadWrite"]
  }, {
    "id": "microsoftexcel_get_chart_at",
    "label": "Get Chart At Index",
    "description": "Get a chart based on its zero-based position in the worksheet",
    "requiredScopes": ["Files.ReadWrite"]
  }, {
    "id": "microsoftexcel_get_chart_image",
    "label": "Get Chart Image",
    "description": "Render a chart as a base64-encoded image",
    "requiredScopes": ["Files.ReadWrite"]
  }, {
    "id": "microsoftexcel_create_chart_series",
    "label": "Create Chart Series",
    "description": "Add a new series to a chart",
    "requiredScopes": ["Files.ReadWrite"]
  }, {
    "id": "microsoftexcel_list_chart_series",
    "label": "List Chart Series",
    "description": "Retrieve the list of series in a chart",
    "requiredScopes": ["Files.Read"]
  }, {
    "id": "microsoftexcel_get_chart_series",
    "label": "Get Chart Series",
    "description": "Retrieve a specific series from a chart by its zero-based index",
    "requiredScopes": ["Files.Read"]
  }, {
    "id": "microsoftexcel_update_chart_series",
    "label": "Update Chart Series",
    "description": "Update the name of a chart series by its zero-based index",
    "requiredScopes": ["Files.ReadWrite"]
  }, {
    "id": "microsoftexcel_get_chart_axis",
    "label": "Get Chart Axis",
    "description": "Retrieve the properties of a chart axis",
    "requiredScopes": ["Files.ReadWrite"]
  }, {
    "id": "microsoftexcel_update_chart_axis",
    "label": "Update Chart Axis",
    "description": "Update properties of a chart axis (min, max, units)",
    "requiredScopes": ["Files.ReadWrite"]
  }, {
    "id": "microsoftexcel_get_chart_axis_title",
    "label": "Get Chart Axis Title",
    "description": "Retrieve the title of a chart axis",
    "requiredScopes": ["Files.Read"]
  }, {
    "id": "microsoftexcel_update_chart_axis_title",
    "label": "Update Chart Axis Title",
    "description": "Update the title of a chart axis",
    "requiredScopes": ["Files.ReadWrite"]
  }, {
    "id": "microsoftexcel_get_chart_data_labels",
    "label": "Get Chart Data Labels",
    "description": "Retrieve the data labels configuration of a chart",
    "requiredScopes": ["Files.ReadWrite"]
  }, {
    "id": "microsoftexcel_update_chart_data_labels",
    "label": "Update Chart Data Labels",
    "description": "Update the data labels configuration of a chart",
    "requiredScopes": ["Files.ReadWrite"]
  }, {
    "id": "microsoftexcel_clear_chart_fill",
    "label": "Clear Chart Fill",
    "description": "Clear the fill color of a chart, title, or legend element",
    "requiredScopes": ["Files.ReadWrite"]
  }, {
    "id": "microsoftexcel_set_chart_fill_solid_color",
    "label": "Set Chart Fill Solid Color",
    "description": "Set the fill of a chart, title, or legend element to a solid color",
    "requiredScopes": ["Files.ReadWrite"]
  }, {
    "id": "microsoftexcel_get_chart_font",
    "label": "Get Chart Font",
    "description": "Retrieve the font properties of a chart axis",
    "requiredScopes": ["Files.ReadWrite"]
  }, {
    "id": "microsoftexcel_update_chart_font",
    "label": "Update Chart Font",
    "description": "Update the font properties of a chart axis",
    "requiredScopes": ["Files.ReadWrite"]
  }, {
    "id": "microsoftexcel_get_chart_gridlines",
    "label": "Get Chart Gridlines",
    "description": "Retrieve the gridlines configuration of a chart axis",
    "requiredScopes": ["Files.ReadWrite"]
  }, {
    "id": "microsoftexcel_update_chart_gridlines",
    "label": "Update Chart Gridlines",
    "description": "Update the visibility of chart axis gridlines",
    "requiredScopes": ["Files.ReadWrite"]
  }, {
    "id": "microsoftexcel_get_chart_legend",
    "label": "Get Chart Legend",
    "description": "Retrieve the legend properties of a chart",
    "requiredScopes": ["Files.ReadWrite"]
  }, {
    "id": "microsoftexcel_update_chart_legend",
    "label": "Update Chart Legend",
    "description": "Update the legend properties of a chart",
    "requiredScopes": ["Files.ReadWrite"]
  }, {
    "id": "microsoftexcel_get_chart_line_format",
    "label": "Get Chart Line Format",
    "description": "Retrieve the line format properties of a chart axis or gridlines",
    "requiredScopes": ["Files.ReadWrite"]
  }, {
    "id": "microsoftexcel_update_chart_line_format",
    "label": "Update Chart Line Format",
    "description": "Update the line color of a chart axis or gridlines",
    "requiredScopes": ["Files.ReadWrite"]
  }, {
    "id": "microsoftexcel_clear_chart_line_format",
    "label": "Clear Chart Line Format",
    "description": "Clear the line format of a chart axis or gridlines",
    "requiredScopes": ["Files.ReadWrite"]
  }, {
    "id": "microsoftexcel_list_chart_points",
    "label": "List Chart Points",
    "description": "Retrieve the list of data points in a chart series",
    "requiredScopes": ["Files.ReadWrite"]
  }, {
    "id": "microsoftexcel_get_chart_point",
    "label": "Get Chart Point",
    "description": "Retrieve a specific data point in a chart series by ID",
    "requiredScopes": ["Files.ReadWrite"]
  }, {
    "id": "microsoftexcel_get_chart_point_at",
    "label": "Get Chart Point At Index",
    "description": "Retrieve a data point by its zero-based index within a chart series",
    "requiredScopes": ["Files.ReadWrite"]
  }, {
    "id": "microsoftexcel_get_chart_title",
    "label": "Get Chart Title",
    "description": "Retrieve the title properties of a chart",
    "requiredScopes": ["Files.ReadWrite"]
  }, {
    "id": "microsoftexcel_update_chart_title",
    "label": "Update Chart Title",
    "description": "Update the title properties of a chart",
    "requiredScopes": ["Files.ReadWrite"]
  }, {
    "id": "microsoftexcel_list_comments",
    "label": "List Comments",
    "description": "Retrieve the list of comments in an Excel workbook",
    "requiredScopes": ["Files.ReadWrite"]
  }, {
    "id": "microsoftexcel_get_comment",
    "label": "Get Comment",
    "description": "Retrieve a specific comment in an Excel workbook by ID",
    "requiredScopes": ["Files.ReadWrite"]
  }, {
    "id": "microsoftexcel_list_comment_replies",
    "label": "List Comment Replies",
    "description": "Retrieve the list of replies for a workbook comment",
    "requiredScopes": ["Files.ReadWrite"]
  }, {
    "id": "microsoftexcel_create_comment_reply",
    "label": "Create Comment Reply",
    "description": "Create a new reply to a workbook comment",
    "requiredScopes": ["Files.ReadWrite"]
  }, {
    "id": "microsoftexcel_get_comment_reply",
    "label": "Get Comment Reply",
    "description": "Retrieve a specific reply to a workbook comment by ID",
    "requiredScopes": ["Files.ReadWrite"]
  }],
  "releaseStage": "preview",
  "categories": ["documents"],
  "scopeDefinitions": [{
    "name": "Files.Read",
    "description": "Read user files"
  }, {
    "name": "Files.ReadWrite",
    "description": "Have full access to user files",
    "includes": ["Files.Read"]
  }, {
    "name": "Files.Read.All",
    "description": "Read all files that user can access",
    "includes": ["Files.Read"]
  }, {
    "name": "Files.ReadWrite.All",
    "description": "Have full access to all files user can access",
    "includes": ["Files.Read.All", "Files.ReadWrite"]
  }, {
    "name": "Sites.Read.All",
    "description": "Read items in all site collections"
  }, {
    "name": "Sites.ReadWrite.All",
    "description": "Read and write items in all site collections",
    "includes": ["Sites.Read.All"]
  }, {
    "name": "User.Read",
    "description": "Sign in and read user profile"
  }]
};

<ConnectorPage connector={connector} />
