@burdenoff/microfe-integrations 2026.929.2 → 2026.929.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- {"version":3,"file":"ProviderIcon.d.ts","sourceRoot":"","sources":["../../../src/integrations/components/ProviderIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAY,KAAK,EAAE,EAAE,MAAM,OAAO,CAAC;AAG1C,OAAO,KAAK,EAAE,mBAAmB,EAAoB,MAAM,UAAU,CAAC;AAKtE,UAAU,iBAAiB;IACzB,QAAQ,EAAE,mBAAmB,CAAC;IAC9B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAqFD;;;GAGG;AACH,wBAAgB,mBAAmB,CACjC,QAAQ,EAAE,IAAI,CAAC,mBAAmB,EAAE,MAAM,GAAG,KAAK,GAAG,UAAU,CAAC,GAC/D,MAAM,CAmBR;AA+CD,wBAAgB,mBAAmB,CACjC,QAAQ,EAAE,IAAI,CAAC,mBAAmB,EAAE,MAAM,GAAG,KAAK,CAAC,GAClD,MAAM,GAAG,SAAS,CAOpB;AAED,wBAAgB,sBAAsB,CACpC,QAAQ,EAAE,IAAI,CAAC,mBAAmB,EAAE,MAAM,GAAG,KAAK,CAAC,EACnD,YAAY,GAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAA0B,GACtE,MAAM,GAAG,SAAS,CAMpB;AAED;;;;;;GAMG;AACH,eAAO,MAAM,YAAY,EAAE,EAAE,CAAC,iBAAiB,CAwE9C,CAAC"}
1
+ {"version":3,"file":"ProviderIcon.d.ts","sourceRoot":"","sources":["../../../src/integrations/components/ProviderIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAY,KAAK,EAAE,EAAE,MAAM,OAAO,CAAC;AAG1C,OAAO,KAAK,EAAE,mBAAmB,EAAoB,MAAM,UAAU,CAAC;AAKtE,UAAU,iBAAiB;IACzB,QAAQ,EAAE,mBAAmB,CAAC;IAC9B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAqFD;;;GAGG;AACH,wBAAgB,mBAAmB,CACjC,QAAQ,EAAE,IAAI,CAAC,mBAAmB,EAAE,MAAM,GAAG,KAAK,GAAG,UAAU,CAAC,GAC/D,MAAM,CAmBR;AA+CD,wBAAgB,mBAAmB,CACjC,QAAQ,EAAE,IAAI,CAAC,mBAAmB,EAAE,MAAM,GAAG,KAAK,CAAC,GAClD,MAAM,GAAG,SAAS,CAOpB;AAED,wBAAgB,sBAAsB,CACpC,QAAQ,EAAE,IAAI,CAAC,mBAAmB,EAAE,MAAM,GAAG,KAAK,CAAC,EACnD,YAAY,GAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAA0B,GACtE,MAAM,GAAG,SAAS,CAMpB;AAED;;;;;;GAMG;AACH,eAAO,MAAM,YAAY,EAAE,EAAE,CAAC,iBAAiB,CAyE9C,CAAC"}
@@ -119,9 +119,10 @@ var b = ({ provider: i, size: a = 40, className: c }) => {
119
119
  let l = Math.round(a * .55), u = n(r(i)), d = y(i), f = v(i), [m, h] = o(null);
120
120
  if (f) return /* @__PURE__ */ s("div", {
121
121
  "aria-hidden": "true",
122
- className: e("flex flex-shrink-0 items-center justify-center rounded-xl font-semibold tracking-tight", u.surface, "text-text-primary", c),
122
+ className: e("flex flex-shrink-0 items-center justify-center rounded-xl px-2 font-semibold tracking-tight whitespace-nowrap", u.surface, "text-text-primary", c),
123
123
  style: {
124
- width: Math.round(a * 1.7),
124
+ width: "max-content",
125
+ minWidth: Math.round(a * 1.7),
125
126
  height: a,
126
127
  fontSize: Math.max(10, Math.round(a * .25))
127
128
  },
@@ -1 +1 @@
1
- {"version":3,"file":"ProviderIcon.js","names":[],"sources":["../../../src/integrations/components/ProviderIcon.tsx"],"sourcesContent":["import { useState, type FC } from 'react';\nimport { Icon } from '@iconify/react';\nimport { cn } from '../utils/cn';\nimport type { IntegrationProvider, ProviderCategory } from '../types';\nimport { getAccentClasses, getProviderAccent } from '../utils/appearance';\nimport bigconsoleIcon from '../assets/brands/bigconsole.png?url';\nimport burdenoffIcon from '../assets/brands/burdenoff.png?url';\n\ninterface ProviderIconProps {\n provider: IntegrationProvider;\n size?: number;\n className?: string;\n}\n\n// ============================================================================\n// Provider icon mapping — same Iconify icon names as fluidgrids-fe-sdk\n// ============================================================================\n\nconst PROVIDER_ICONS: Record<string, string> = {\n // Google services\n 'google-gmail': 'logos:google-gmail',\n 'google-drive': 'logos:google-drive',\n 'google-calendar': 'logos:google-calendar',\n 'google-sheets': 'thesvg-color:google-sheets',\n 'google-docs': 'thesvg-color:google-docs',\n 'google-chat': 'thesvg-color:google-chat',\n 'google-forms': 'simple-icons:googleforms',\n 'google-workspace-admin': 'thesvg-color:google-workspace-admin',\n // Microsoft services\n 'microsoft-outlook': 'thesvg-color:microsoft-outlook',\n 'microsoft-onedrive': 'logos:microsoft-onedrive',\n 'microsoft-teams': 'logos:microsoft-teams',\n 'microsoft-excel': 'thesvg-color:microsoft-excel',\n // Other OAuth2\n github: 'mdi:github',\n slack: 'logos:slack-icon',\n salesforce: 'logos:salesforce',\n notion: 'simple-icons:notion',\n airtable: 'logos:airtable',\n linear: 'simple-icons:linear',\n facebook: 'logos:facebook',\n instagram: 'logos:instagram-icon',\n twitter: 'simple-icons:x',\n linkedin: 'simple-icons:linkedin',\n youtube: 'logos:youtube-icon',\n tiktok: 'logos:tiktok-icon',\n pinterest: 'logos:pinterest',\n snapchat: 'simple-icons:snapchat',\n 'google-ads': 'logos:google-ads',\n 'linkedin-ads': 'simple-icons:linkedin',\n quickbooks: 'simple-icons:quickbooks',\n 'g2-data-feed': 'thesvg-color:g2',\n // API Key\n openai: 'simple-icons:openai',\n anthropic: 'simple-icons:anthropic',\n sendgrid: 'simple-icons:sendgrid',\n twilio: 'logos:twilio-icon',\n // Generic\n 'generic-oauth2': 'mdi:key-chain',\n 'generic-api-key': 'mdi:key-variant',\n 'generic-basic-auth': 'mdi:lock-outline',\n};\n\n/**\n * Fallback Iconify icons per category\n */\nconst CATEGORY_ICONS: Record<string, string> = {\n communication: 'mdi:message-text-outline',\n project_management: 'mdi:view-dashboard-outline',\n cloud_storage: 'mdi:cloud-outline',\n crm: 'mdi:account-group-outline',\n analytics: 'mdi:chart-bar',\n developer_tools: 'mdi:code-braces',\n finance: 'mdi:currency-usd',\n support: 'mdi:headset',\n social: 'mdi:share-variant-outline',\n ai: 'mdi:brain',\n email: 'mdi:email-outline',\n calendar: 'mdi:calendar-outline',\n productivity: 'mdi:file-document-outline',\n marketing: 'mdi:bullhorn-outline',\n hr: 'mdi:account-tie-outline',\n other: 'mdi:puzzle-outline',\n};\n\nfunction ownedValue<T>(values: Readonly<Record<string, T>>, key: string): T | undefined {\n return Object.prototype.hasOwnProperty.call(values, key) ? values[key] : undefined;\n}\n\nfunction getCategoryIcon(category: ProviderCategory): string {\n return ownedValue(CATEGORY_ICONS, category) ?? CATEGORY_ICONS.other;\n}\n\nconst LEGACY_BROKEN_ICON_IDS: Readonly<Record<string, { icon: string; replacement: string }>> = {\n pipedrive: { icon: 'simple-icons:pipedrive', replacement: 'thesvg-color:pipedrive' },\n};\n\n/**\n * Legacy bare keys remain readable while existing provider rows roll forward to\n * the self-describing `iconify:` values stored by the seed.\n */\nexport function getProviderIconName(\n provider: Pick<IntegrationProvider, 'icon' | 'key' | 'category'>\n): string {\n const icon = provider.icon ?? '';\n const legacyBrokenIcon = ownedValue(LEGACY_BROKEN_ICON_IDS, provider.key);\n if (icon === legacyBrokenIcon?.icon) return legacyBrokenIcon.replacement;\n if (icon.startsWith('iconify:')) return icon.slice('iconify:'.length);\n if (icon.startsWith('text:')) return getCategoryIcon(provider.category);\n if (/^[a-z0-9-]+:[a-z0-9-]+$/i.test(icon) && !icon.startsWith('brand:')) return icon;\n if (icon === 'key' && provider.key.startsWith('generic-')) {\n return ownedValue(PROVIDER_ICONS, provider.key) ?? getCategoryIcon(provider.category);\n }\n\n // An explicit administrator icon must not be replaced by an unrelated\n // provider-key mapping when it is not a recognized legacy value.\n return (\n ownedValue(PROVIDER_ICONS, icon) ??\n (icon\n ? getCategoryIcon(provider.category)\n : (ownedValue(PROVIDER_ICONS, provider.key) ?? getCategoryIcon(provider.category)))\n );\n}\n\n/**\n * True when the icon value is something the browser can load directly.\n * Supports remote URLs, app-relative paths and inline data URIs (admin upload).\n */\nfunction isImageSource(icon: string | undefined): boolean {\n if (!icon) return false;\n return icon.startsWith('http') || icon.startsWith('/') || icon.startsWith('data:');\n}\n\n// First-party marks, bundled into the MFE so host apps do not need to copy assets.\nconst BUNDLED_PROVIDER_ICONS: Readonly<Record<string, string>> = {\n bigconsole: bigconsoleIcon,\n burdenoff: burdenoffIcon,\n};\n\n// These services have no compact mark cleared for redistribution in this package.\n// A named tile is more accurate than an unrelated company's icon.\nconst TEXT_PROVIDER_LABELS: Readonly<Record<string, string>> = {\n bamboohr: 'BambooHR',\n 'meta-ads': 'Meta Ads',\n pgvector: 'pgvector',\n 'apple-app-store-connect': 'Connect',\n 'freshdesk-api': 'Freshdesk',\n hubspot: 'HubSpot',\n pinecone: 'Pinecone',\n ramp: 'Ramp',\n tally: 'TallyPrime',\n woocommerce: 'WooCommerce',\n 'zoho-books': 'Zoho Books',\n};\n\nconst LEGACY_TEXT_PROVIDER_ICONS: Readonly<Record<string, string>> = {\n bamboohr: 'simple-icons:bamboohr',\n 'meta-ads': 'meta-ads',\n pgvector: 'iconify:logos:postgresql',\n 'apple-app-store-connect': 'simple-icons:appstore',\n 'freshdesk-api': 'simple-icons:freshworks',\n hubspot: 'hubspot',\n pinecone: 'iconify:mdi:database-search',\n ramp: 'mdi:credit-card-outline',\n tally: 'tally',\n woocommerce: 'simple-icons:woocommerce',\n 'zoho-books': 'zoho-books',\n};\n\nexport function getProviderTextIcon(\n provider: Pick<IntegrationProvider, 'icon' | 'key'>\n): string | undefined {\n const { icon, key } = provider;\n const textKey = icon?.startsWith('text:') ? icon.slice('text:'.length) : key;\n if (icon?.startsWith('text:') || icon === ownedValue(LEGACY_TEXT_PROVIDER_ICONS, key)) {\n return ownedValue(TEXT_PROVIDER_LABELS, textKey);\n }\n return undefined;\n}\n\nexport function getProviderImageSource(\n provider: Pick<IntegrationProvider, 'icon' | 'key'>,\n bundledIcons: Readonly<Record<string, string>> = BUNDLED_PROVIDER_ICONS\n): string | undefined {\n const { icon } = provider;\n if (!icon) return undefined;\n if (isImageSource(icon)) return icon;\n\n return ownedValue(bundledIcons, icon.startsWith('brand:') ? icon.slice('brand:'.length) : icon);\n}\n\n/**\n * Renders a provider icon.\n *\n * Text tiles identify providers without an approved compact mark. Image URLs\n * and bundled `brand:` assets render as images; legacy values remain supported\n * during the seed rollout. Other icons use Iconify or a category fallback.\n */\nexport const ProviderIcon: FC<ProviderIconProps> = ({ provider, size = 40, className }) => {\n const iconSize = Math.round(size * 0.55);\n const accent = getAccentClasses(getProviderAccent(provider));\n const imageSource = getProviderImageSource(provider);\n const textIcon = getProviderTextIcon(provider);\n const [failedImageSource, setFailedImageSource] = useState<string | null>(null);\n\n if (textIcon) {\n return (\n <div\n aria-hidden=\"true\"\n className={cn(\n 'flex flex-shrink-0 items-center justify-center rounded-xl font-semibold tracking-tight',\n accent.surface,\n 'text-text-primary',\n className\n )}\n style={{\n width: Math.round(size * 1.7),\n height: size,\n fontSize: Math.max(10, Math.round(size * 0.25)),\n }}\n >\n {textIcon}\n </div>\n );\n }\n\n if (imageSource && failedImageSource !== imageSource) {\n return (\n <div\n className={cn(\n 'flex items-center justify-center rounded-xl flex-shrink-0 overflow-hidden',\n accent.surface,\n className\n )}\n style={{ width: size, height: size }}\n >\n <img\n src={imageSource}\n alt=\"\"\n className=\"object-contain\"\n style={{ width: iconSize, height: iconSize }}\n onError={() => setFailedImageSource(imageSource)}\n />\n </div>\n );\n }\n\n // 2 & 3. Iconify icon (provider-specific or category fallback)\n const iconName = getProviderIconName(provider);\n\n return (\n <div\n className={cn(\n 'flex items-center justify-center rounded-xl flex-shrink-0',\n accent.surface,\n className\n )}\n style={{\n width: size,\n height: size,\n }}\n >\n <Icon\n icon={iconName}\n width={iconSize}\n height={iconSize}\n className={iconName === 'thesvg:bedrock-aws' ? 'text-text-primary' : accent.icon}\n />\n </div>\n );\n};\n"],"mappings":";;;;;;;;AAkBA,IAAM,IAAyC;CAE7C,gBAAgB;CAChB,gBAAgB;CAChB,mBAAmB;CACnB,iBAAiB;CACjB,eAAe;CACf,eAAe;CACf,gBAAgB;CAChB,0BAA0B;CAE1B,qBAAqB;CACrB,sBAAsB;CACtB,mBAAmB;CACnB,mBAAmB;CAEnB,QAAQ;CACR,OAAO;CACP,YAAY;CACZ,QAAQ;CACR,UAAU;CACV,QAAQ;CACR,UAAU;CACV,WAAW;CACX,SAAS;CACT,UAAU;CACV,SAAS;CACT,QAAQ;CACR,WAAW;CACX,UAAU;CACV,cAAc;CACd,gBAAgB;CAChB,YAAY;CACZ,gBAAgB;CAEhB,QAAQ;CACR,WAAW;CACX,UAAU;CACV,QAAQ;CAER,kBAAkB;CAClB,mBAAmB;CACnB,sBAAsB;CACvB,EAKK,IAAyC;CAC7C,eAAe;CACf,oBAAoB;CACpB,eAAe;CACf,KAAK;CACL,WAAW;CACX,iBAAiB;CACjB,SAAS;CACT,SAAS;CACT,QAAQ;CACR,IAAI;CACJ,OAAO;CACP,UAAU;CACV,cAAc;CACd,WAAW;CACX,IAAI;CACJ,OAAO;CACR;AAED,SAAS,EAAc,GAAqC,GAA4B;AACtF,QAAO,OAAO,UAAU,eAAe,KAAK,GAAQ,EAAI,GAAG,EAAO,KAAO,KAAA;;AAG3E,SAAS,EAAgB,GAAoC;AAC3D,QAAO,EAAW,GAAgB,EAAS,IAAI,EAAe;;AAGhE,IAAM,IAA0F,EAC9F,WAAW;CAAE,MAAM;CAA0B,aAAa;CAA0B,EACrF;AAMD,SAAgB,EACd,GACQ;CACR,IAAM,IAAO,EAAS,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,GAAS,IAEzB,EAAW,GAAc,EAAK,WAAW,SAAS,GAAG,EAAK,MAAM,EAAgB,GAAG,EAAK;;AAUjG,IAAa,KAAuC,EAAE,aAAU,UAAO,IAAI,mBAAgB;CACzF,IAAM,IAAW,KAAK,MAAM,IAAO,IAAK,EAClC,IAAS,EAAiB,EAAkB,EAAS,CAAC,EACtD,IAAc,EAAuB,EAAS,EAC9C,IAAW,EAAoB,EAAS,EACxC,CAAC,GAAmB,KAAwB,EAAwB,KAAK;AAE/E,KAAI,EACF,QACE,kBAAC,OAAD;EACE,eAAY;EACZ,WAAW,EACT,0FACA,EAAO,SACP,qBACA,EACD;EACD,OAAO;GACL,OAAO,KAAK,MAAM,IAAO,IAAI;GAC7B,QAAQ;GACR,UAAU,KAAK,IAAI,IAAI,KAAK,MAAM,IAAO,IAAK,CAAC;GAChD;YAEA;EACG,CAAA;AAIV,KAAI,KAAe,MAAsB,EACvC,QACE,kBAAC,OAAD;EACE,WAAW,EACT,6EACA,EAAO,SACP,EACD;EACD,OAAO;GAAE,OAAO;GAAM,QAAQ;GAAM;YAEpC,kBAAC,OAAD;GACE,KAAK;GACL,KAAI;GACJ,WAAU;GACV,OAAO;IAAE,OAAO;IAAU,QAAQ;IAAU;GAC5C,eAAe,EAAqB,EAAY;GAChD,CAAA;EACE,CAAA;CAKV,IAAM,IAAW,EAAoB,EAAS;AAE9C,QACE,kBAAC,OAAD;EACE,WAAW,EACT,6DACA,EAAO,SACP,EACD;EACD,OAAO;GACL,OAAO;GACP,QAAQ;GACT;YAED,kBAAC,GAAD;GACE,MAAM;GACN,OAAO;GACP,QAAQ;GACR,WAAW,MAAa,uBAAuB,sBAAsB,EAAO;GAC5E,CAAA;EACE,CAAA"}
1
+ {"version":3,"file":"ProviderIcon.js","names":[],"sources":["../../../src/integrations/components/ProviderIcon.tsx"],"sourcesContent":["import { useState, type FC } from 'react';\nimport { Icon } from '@iconify/react';\nimport { cn } from '../utils/cn';\nimport type { IntegrationProvider, ProviderCategory } from '../types';\nimport { getAccentClasses, getProviderAccent } from '../utils/appearance';\nimport bigconsoleIcon from '../assets/brands/bigconsole.png?url';\nimport burdenoffIcon from '../assets/brands/burdenoff.png?url';\n\ninterface ProviderIconProps {\n provider: IntegrationProvider;\n size?: number;\n className?: string;\n}\n\n// ============================================================================\n// Provider icon mapping — same Iconify icon names as fluidgrids-fe-sdk\n// ============================================================================\n\nconst PROVIDER_ICONS: Record<string, string> = {\n // Google services\n 'google-gmail': 'logos:google-gmail',\n 'google-drive': 'logos:google-drive',\n 'google-calendar': 'logos:google-calendar',\n 'google-sheets': 'thesvg-color:google-sheets',\n 'google-docs': 'thesvg-color:google-docs',\n 'google-chat': 'thesvg-color:google-chat',\n 'google-forms': 'simple-icons:googleforms',\n 'google-workspace-admin': 'thesvg-color:google-workspace-admin',\n // Microsoft services\n 'microsoft-outlook': 'thesvg-color:microsoft-outlook',\n 'microsoft-onedrive': 'logos:microsoft-onedrive',\n 'microsoft-teams': 'logos:microsoft-teams',\n 'microsoft-excel': 'thesvg-color:microsoft-excel',\n // Other OAuth2\n github: 'mdi:github',\n slack: 'logos:slack-icon',\n salesforce: 'logos:salesforce',\n notion: 'simple-icons:notion',\n airtable: 'logos:airtable',\n linear: 'simple-icons:linear',\n facebook: 'logos:facebook',\n instagram: 'logos:instagram-icon',\n twitter: 'simple-icons:x',\n linkedin: 'simple-icons:linkedin',\n youtube: 'logos:youtube-icon',\n tiktok: 'logos:tiktok-icon',\n pinterest: 'logos:pinterest',\n snapchat: 'simple-icons:snapchat',\n 'google-ads': 'logos:google-ads',\n 'linkedin-ads': 'simple-icons:linkedin',\n quickbooks: 'simple-icons:quickbooks',\n 'g2-data-feed': 'thesvg-color:g2',\n // API Key\n openai: 'simple-icons:openai',\n anthropic: 'simple-icons:anthropic',\n sendgrid: 'simple-icons:sendgrid',\n twilio: 'logos:twilio-icon',\n // Generic\n 'generic-oauth2': 'mdi:key-chain',\n 'generic-api-key': 'mdi:key-variant',\n 'generic-basic-auth': 'mdi:lock-outline',\n};\n\n/**\n * Fallback Iconify icons per category\n */\nconst CATEGORY_ICONS: Record<string, string> = {\n communication: 'mdi:message-text-outline',\n project_management: 'mdi:view-dashboard-outline',\n cloud_storage: 'mdi:cloud-outline',\n crm: 'mdi:account-group-outline',\n analytics: 'mdi:chart-bar',\n developer_tools: 'mdi:code-braces',\n finance: 'mdi:currency-usd',\n support: 'mdi:headset',\n social: 'mdi:share-variant-outline',\n ai: 'mdi:brain',\n email: 'mdi:email-outline',\n calendar: 'mdi:calendar-outline',\n productivity: 'mdi:file-document-outline',\n marketing: 'mdi:bullhorn-outline',\n hr: 'mdi:account-tie-outline',\n other: 'mdi:puzzle-outline',\n};\n\nfunction ownedValue<T>(values: Readonly<Record<string, T>>, key: string): T | undefined {\n return Object.prototype.hasOwnProperty.call(values, key) ? values[key] : undefined;\n}\n\nfunction getCategoryIcon(category: ProviderCategory): string {\n return ownedValue(CATEGORY_ICONS, category) ?? CATEGORY_ICONS.other;\n}\n\nconst LEGACY_BROKEN_ICON_IDS: Readonly<Record<string, { icon: string; replacement: string }>> = {\n pipedrive: { icon: 'simple-icons:pipedrive', replacement: 'thesvg-color:pipedrive' },\n};\n\n/**\n * Legacy bare keys remain readable while existing provider rows roll forward to\n * the self-describing `iconify:` values stored by the seed.\n */\nexport function getProviderIconName(\n provider: Pick<IntegrationProvider, 'icon' | 'key' | 'category'>\n): string {\n const icon = provider.icon ?? '';\n const legacyBrokenIcon = ownedValue(LEGACY_BROKEN_ICON_IDS, provider.key);\n if (icon === legacyBrokenIcon?.icon) return legacyBrokenIcon.replacement;\n if (icon.startsWith('iconify:')) return icon.slice('iconify:'.length);\n if (icon.startsWith('text:')) return getCategoryIcon(provider.category);\n if (/^[a-z0-9-]+:[a-z0-9-]+$/i.test(icon) && !icon.startsWith('brand:')) return icon;\n if (icon === 'key' && provider.key.startsWith('generic-')) {\n return ownedValue(PROVIDER_ICONS, provider.key) ?? getCategoryIcon(provider.category);\n }\n\n // An explicit administrator icon must not be replaced by an unrelated\n // provider-key mapping when it is not a recognized legacy value.\n return (\n ownedValue(PROVIDER_ICONS, icon) ??\n (icon\n ? getCategoryIcon(provider.category)\n : (ownedValue(PROVIDER_ICONS, provider.key) ?? getCategoryIcon(provider.category)))\n );\n}\n\n/**\n * True when the icon value is something the browser can load directly.\n * Supports remote URLs, app-relative paths and inline data URIs (admin upload).\n */\nfunction isImageSource(icon: string | undefined): boolean {\n if (!icon) return false;\n return icon.startsWith('http') || icon.startsWith('/') || icon.startsWith('data:');\n}\n\n// First-party marks, bundled into the MFE so host apps do not need to copy assets.\nconst BUNDLED_PROVIDER_ICONS: Readonly<Record<string, string>> = {\n bigconsole: bigconsoleIcon,\n burdenoff: burdenoffIcon,\n};\n\n// These services have no compact mark cleared for redistribution in this package.\n// A named tile is more accurate than an unrelated company's icon.\nconst TEXT_PROVIDER_LABELS: Readonly<Record<string, string>> = {\n bamboohr: 'BambooHR',\n 'meta-ads': 'Meta Ads',\n pgvector: 'pgvector',\n 'apple-app-store-connect': 'Connect',\n 'freshdesk-api': 'Freshdesk',\n hubspot: 'HubSpot',\n pinecone: 'Pinecone',\n ramp: 'Ramp',\n tally: 'TallyPrime',\n woocommerce: 'WooCommerce',\n 'zoho-books': 'Zoho Books',\n};\n\nconst LEGACY_TEXT_PROVIDER_ICONS: Readonly<Record<string, string>> = {\n bamboohr: 'simple-icons:bamboohr',\n 'meta-ads': 'meta-ads',\n pgvector: 'iconify:logos:postgresql',\n 'apple-app-store-connect': 'simple-icons:appstore',\n 'freshdesk-api': 'simple-icons:freshworks',\n hubspot: 'hubspot',\n pinecone: 'iconify:mdi:database-search',\n ramp: 'mdi:credit-card-outline',\n tally: 'tally',\n woocommerce: 'simple-icons:woocommerce',\n 'zoho-books': 'zoho-books',\n};\n\nexport function getProviderTextIcon(\n provider: Pick<IntegrationProvider, 'icon' | 'key'>\n): string | undefined {\n const { icon, key } = provider;\n const textKey = icon?.startsWith('text:') ? icon.slice('text:'.length) : key;\n if (icon?.startsWith('text:') || icon === ownedValue(LEGACY_TEXT_PROVIDER_ICONS, key)) {\n return ownedValue(TEXT_PROVIDER_LABELS, textKey);\n }\n return undefined;\n}\n\nexport function getProviderImageSource(\n provider: Pick<IntegrationProvider, 'icon' | 'key'>,\n bundledIcons: Readonly<Record<string, string>> = BUNDLED_PROVIDER_ICONS\n): string | undefined {\n const { icon } = provider;\n if (!icon) return undefined;\n if (isImageSource(icon)) return icon;\n\n return ownedValue(bundledIcons, icon.startsWith('brand:') ? icon.slice('brand:'.length) : icon);\n}\n\n/**\n * Renders a provider icon.\n *\n * Text tiles identify providers without an approved compact mark. Image URLs\n * and bundled `brand:` assets render as images; legacy values remain supported\n * during the seed rollout. Other icons use Iconify or a category fallback.\n */\nexport const ProviderIcon: FC<ProviderIconProps> = ({ provider, size = 40, className }) => {\n const iconSize = Math.round(size * 0.55);\n const accent = getAccentClasses(getProviderAccent(provider));\n const imageSource = getProviderImageSource(provider);\n const textIcon = getProviderTextIcon(provider);\n const [failedImageSource, setFailedImageSource] = useState<string | null>(null);\n\n if (textIcon) {\n return (\n <div\n aria-hidden=\"true\"\n className={cn(\n 'flex flex-shrink-0 items-center justify-center rounded-xl px-2 font-semibold tracking-tight whitespace-nowrap',\n accent.surface,\n 'text-text-primary',\n className\n )}\n style={{\n width: 'max-content',\n minWidth: Math.round(size * 1.7),\n height: size,\n fontSize: Math.max(10, Math.round(size * 0.25)),\n }}\n >\n {textIcon}\n </div>\n );\n }\n\n if (imageSource && failedImageSource !== imageSource) {\n return (\n <div\n className={cn(\n 'flex items-center justify-center rounded-xl flex-shrink-0 overflow-hidden',\n accent.surface,\n className\n )}\n style={{ width: size, height: size }}\n >\n <img\n src={imageSource}\n alt=\"\"\n className=\"object-contain\"\n style={{ width: iconSize, height: iconSize }}\n onError={() => setFailedImageSource(imageSource)}\n />\n </div>\n );\n }\n\n // 2 & 3. Iconify icon (provider-specific or category fallback)\n const iconName = getProviderIconName(provider);\n\n return (\n <div\n className={cn(\n 'flex items-center justify-center rounded-xl flex-shrink-0',\n accent.surface,\n className\n )}\n style={{\n width: size,\n height: size,\n }}\n >\n <Icon\n icon={iconName}\n width={iconSize}\n height={iconSize}\n className={iconName === 'thesvg:bedrock-aws' ? 'text-text-primary' : accent.icon}\n />\n </div>\n );\n};\n"],"mappings":";;;;;;;;AAkBA,IAAM,IAAyC;CAE7C,gBAAgB;CAChB,gBAAgB;CAChB,mBAAmB;CACnB,iBAAiB;CACjB,eAAe;CACf,eAAe;CACf,gBAAgB;CAChB,0BAA0B;CAE1B,qBAAqB;CACrB,sBAAsB;CACtB,mBAAmB;CACnB,mBAAmB;CAEnB,QAAQ;CACR,OAAO;CACP,YAAY;CACZ,QAAQ;CACR,UAAU;CACV,QAAQ;CACR,UAAU;CACV,WAAW;CACX,SAAS;CACT,UAAU;CACV,SAAS;CACT,QAAQ;CACR,WAAW;CACX,UAAU;CACV,cAAc;CACd,gBAAgB;CAChB,YAAY;CACZ,gBAAgB;CAEhB,QAAQ;CACR,WAAW;CACX,UAAU;CACV,QAAQ;CAER,kBAAkB;CAClB,mBAAmB;CACnB,sBAAsB;CACvB,EAKK,IAAyC;CAC7C,eAAe;CACf,oBAAoB;CACpB,eAAe;CACf,KAAK;CACL,WAAW;CACX,iBAAiB;CACjB,SAAS;CACT,SAAS;CACT,QAAQ;CACR,IAAI;CACJ,OAAO;CACP,UAAU;CACV,cAAc;CACd,WAAW;CACX,IAAI;CACJ,OAAO;CACR;AAED,SAAS,EAAc,GAAqC,GAA4B;AACtF,QAAO,OAAO,UAAU,eAAe,KAAK,GAAQ,EAAI,GAAG,EAAO,KAAO,KAAA;;AAG3E,SAAS,EAAgB,GAAoC;AAC3D,QAAO,EAAW,GAAgB,EAAS,IAAI,EAAe;;AAGhE,IAAM,IAA0F,EAC9F,WAAW;CAAE,MAAM;CAA0B,aAAa;CAA0B,EACrF;AAMD,SAAgB,EACd,GACQ;CACR,IAAM,IAAO,EAAS,QAAQ,IACxB,IAAmB,EAAW,GAAw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,WAAW,SAAS,GAAG,EAAK,MAAM,EAAgB,GAAG,EAAK;;AAUjG,IAAa,KAAuC,EAAE,aAAU,UAAO,IAAI,mBAAgB;CACzF,IAAM,IAAW,KAAK,MAAM,IAAO,IAAK,EAClC,IAAS,EAAiB,EAAkB,EAAS,CAAC,EACtD,IAAc,EAAuB,EAAS,EAC9C,IAAW,EAAoB,EAAS,EACxC,CAAC,GAAmB,KAAwB,EAAwB,KAAK;AAE/E,KAAI,EACF,QACE,kBAAC,OAAD;EACE,eAAY;EACZ,WAAW,EACT,iHACA,EAAO,SACP,qBACA,EACD;EACD,OAAO;GACL,OAAO;GACP,UAAU,KAAK,MAAM,IAAO,IAAI;GAChC,QAAQ;GACR,UAAU,KAAK,IAAI,IAAI,KAAK,MAAM,IAAO,IAAK,CAAC;GAChD;YAEA;EACG,CAAA;AAIV,KAAI,KAAe,MAAsB,EACvC,QACE,kBAAC,OAAD;EACE,WAAW,EACT,6EACA,EAAO,SACP,EACD;EACD,OAAO;GAAE,OAAO;GAAM,QAAQ;GAAM;YAEpC,kBAAC,OAAD;GACE,KAAK;GACL,KAAI;GACJ,WAAU;GACV,OAAO;IAAE,OAAO;IAAU,QAAQ;IAAU;GAC5C,eAAe,EAAqB,EAAY;GAChD,CAAA;EACE,CAAA;CAKV,IAAM,IAAW,EAAoB,EAAS;AAE9C,QACE,kBAAC,OAAD;EACE,WAAW,EACT,6DACA,EAAO,SACP,EACD;EACD,OAAO;GACL,OAAO;GACP,QAAQ;GACT;YAED,kBAAC,GAAD;GACE,MAAM;GACN,OAAO;GACP,QAAQ;GACR,WAAW,MAAa,uBAAuB,sBAAsB,EAAO;GAC5E,CAAA;EACE,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@burdenoff/microfe-integrations",
3
- "version": "2026.929.2",
3
+ "version": "2026.929.3",
4
4
  "description": "Burdenoff Integrations Microfrontend - Plugin-based provider and connection management interface",
5
5
  "type": "module",
6
6
  "files": [