@firetail/finchly-ux 0.1.0 → 0.1.1

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.
package/dist/lib/marks.js CHANGED
@@ -13,6 +13,8 @@
13
13
  */
14
14
  var MARKS = Object.freeze({
15
15
  github: "github",
16
+ gitlab: "gitlab",
17
+ git: "git",
16
18
  hubspot: "hubspot",
17
19
  "hubspot-crm": "hubspot-crm",
18
20
  anthropic: "anthropic",
@@ -1 +1 @@
1
- {"version":3,"file":"marks.js","names":[],"sources":["../../src/lib/marks.ts"],"sourcesContent":["// The marks of the platforms things are connected to. Nothing here knows\n// of a page.\n\n/**\n * Which mark stands for what: a kind of connection of the platform's\n * (spec/connectors.md), a provider of the toolbox's tools, or an MCP\n * server the platform knows of, by its id. The marks are kept by the\n * platform's connections, at notification-service/static/logos/<mark>.svg,\n * each in its own colour. One that is not here is shown by its initials.\n *\n * This is where a mark is added. A test (test/marks.test.ts) holds it to\n * what there is to connect: every provider of the toolbox's tools, every\n * server the platform knows of and every kind of connection has a mark,\n * or is named there as having none.\n */\nexport const MARKS: Readonly<Record<string, string>> = Object.freeze({\n github: \"github\",\n hubspot: \"hubspot\",\n \"hubspot-crm\": \"hubspot-crm\",\n anthropic: \"anthropic\",\n openai: \"openai\",\n atlassian: \"atlassian\",\n \"atlassian-mcp\": \"atlassian\",\n \"google-workspace\": \"google-workspace\",\n tailscale: \"tailscale\",\n auth0: \"auth0\",\n airtable: \"airtable\",\n slack: \"slack\",\n \"slack-mcp\": \"slack\",\n msteams: \"msteams\",\n azure: \"azure\",\n cloudflare: \"cloudflare\",\n \"cloudflare-docs\": \"cloudflare\",\n aws: \"aws\",\n \"aws-sts\": \"aws\",\n \"aws-agentcore\": \"aws\",\n \"aws-knowledge\": \"aws\",\n \"aws-bedrock\": \"aws\",\n \"azure-ai-foundry\": \"azure\",\n \"brave-search\": \"brave\",\n tavily: \"tavily\",\n apollo: \"apollo\",\n \"apollo-mcp\": \"apollo\",\n});\n\n/** Where the mark for something is kept, or null where there is none. */\nexport function markOf(id: string | null | undefined): string | null {\n return typeof id === \"string\" && Object.hasOwn(MARKS, id) ? `/notification-service/static/logos/${MARKS[id]}.svg` : null;\n}\n\n/** The letters that stand for something that has no mark: its words' first letters, three at most, or the first two of one word. */\nexport function markLetters(name: string | null | undefined): string {\n const words = String(name ?? \"\")\n .replace(/[^A-Za-z0-9 ]/g, \" \")\n .trim()\n .split(/\\s+/)\n .filter(Boolean);\n return (words.length > 1 ? words.slice(0, 3).map((word) => word.charAt(0)).join(\"\") : (words[0] ?? \"?\").slice(0, 2)).toUpperCase();\n}\n"],"mappings":";;;;;;;;;;;;;AAeA,IAAa,QAA0C,OAAO,OAAO;CACnE,QAAQ;CACR,SAAS;CACT,eAAe;CACf,WAAW;CACX,QAAQ;CACR,WAAW;CACX,iBAAiB;CACjB,oBAAoB;CACpB,WAAW;CACX,OAAO;CACP,UAAU;CACV,OAAO;CACP,aAAa;CACb,SAAS;CACT,OAAO;CACP,YAAY;CACZ,mBAAmB;CACnB,KAAK;CACL,WAAW;CACX,iBAAiB;CACjB,iBAAiB;CACjB,eAAe;CACf,oBAAoB;CACpB,gBAAgB;CAChB,QAAQ;CACR,QAAQ;CACR,cAAc;AAChB,CAAC;;AAGD,SAAgB,OAAO,IAA8C;CACnE,OAAO,OAAO,OAAO,YAAY,OAAO,OAAO,OAAO,EAAE,IAAI,sCAAsC,MAAM,IAAI,QAAQ;AACtH;;AAGA,SAAgB,YAAY,MAAyC;CACnE,MAAM,QAAQ,OAAO,QAAQ,EAAE,CAAC,CAC7B,QAAQ,kBAAkB,GAAG,CAAC,CAC9B,KAAK,CAAC,CACN,MAAM,KAAK,CAAC,CACZ,OAAO,OAAO;CACjB,QAAQ,MAAM,SAAS,IAAI,MAAM,MAAM,GAAG,CAAC,CAAC,CAAC,KAAK,SAAS,KAAK,OAAO,CAAC,CAAC,CAAC,CAAC,KAAK,EAAE,KAAK,MAAM,MAAM,IAAA,CAAK,MAAM,GAAG,CAAC,EAAA,CAAG,YAAY;AACnI"}
1
+ {"version":3,"file":"marks.js","names":[],"sources":["../../src/lib/marks.ts"],"sourcesContent":["// The marks of the platforms things are connected to. Nothing here knows\n// of a page.\n\n/**\n * Which mark stands for what: a kind of connection of the platform's\n * (spec/connectors.md), a provider of the toolbox's tools, or an MCP\n * server the platform knows of, by its id. The marks are kept by the\n * platform's connections, at notification-service/static/logos/<mark>.svg,\n * each in its own colour. One that is not here is shown by its initials.\n *\n * This is where a mark is added. A test (test/marks.test.ts) holds it to\n * what there is to connect: every provider of the toolbox's tools, every\n * server the platform knows of and every kind of connection has a mark,\n * or is named there as having none.\n */\nexport const MARKS: Readonly<Record<string, string>> = Object.freeze({\n github: \"github\",\n gitlab: \"gitlab\",\n git: \"git\",\n hubspot: \"hubspot\",\n \"hubspot-crm\": \"hubspot-crm\",\n anthropic: \"anthropic\",\n openai: \"openai\",\n atlassian: \"atlassian\",\n \"atlassian-mcp\": \"atlassian\",\n \"google-workspace\": \"google-workspace\",\n tailscale: \"tailscale\",\n auth0: \"auth0\",\n airtable: \"airtable\",\n slack: \"slack\",\n \"slack-mcp\": \"slack\",\n msteams: \"msteams\",\n azure: \"azure\",\n cloudflare: \"cloudflare\",\n \"cloudflare-docs\": \"cloudflare\",\n aws: \"aws\",\n \"aws-sts\": \"aws\",\n \"aws-agentcore\": \"aws\",\n \"aws-knowledge\": \"aws\",\n \"aws-bedrock\": \"aws\",\n \"azure-ai-foundry\": \"azure\",\n \"brave-search\": \"brave\",\n tavily: \"tavily\",\n apollo: \"apollo\",\n \"apollo-mcp\": \"apollo\",\n});\n\n/** Where the mark for something is kept, or null where there is none. */\nexport function markOf(id: string | null | undefined): string | null {\n return typeof id === \"string\" && Object.hasOwn(MARKS, id) ? `/notification-service/static/logos/${MARKS[id]}.svg` : null;\n}\n\n/** The letters that stand for something that has no mark: its words' first letters, three at most, or the first two of one word. */\nexport function markLetters(name: string | null | undefined): string {\n const words = String(name ?? \"\")\n .replace(/[^A-Za-z0-9 ]/g, \" \")\n .trim()\n .split(/\\s+/)\n .filter(Boolean);\n return (words.length > 1 ? words.slice(0, 3).map((word) => word.charAt(0)).join(\"\") : (words[0] ?? \"?\").slice(0, 2)).toUpperCase();\n}\n"],"mappings":";;;;;;;;;;;;;AAeA,IAAa,QAA0C,OAAO,OAAO;CACnE,QAAQ;CACR,QAAQ;CACR,KAAK;CACL,SAAS;CACT,eAAe;CACf,WAAW;CACX,QAAQ;CACR,WAAW;CACX,iBAAiB;CACjB,oBAAoB;CACpB,WAAW;CACX,OAAO;CACP,UAAU;CACV,OAAO;CACP,aAAa;CACb,SAAS;CACT,OAAO;CACP,YAAY;CACZ,mBAAmB;CACnB,KAAK;CACL,WAAW;CACX,iBAAiB;CACjB,iBAAiB;CACjB,eAAe;CACf,oBAAoB;CACpB,gBAAgB;CAChB,QAAQ;CACR,QAAQ;CACR,cAAc;AAChB,CAAC;;AAGD,SAAgB,OAAO,IAA8C;CACnE,OAAO,OAAO,OAAO,YAAY,OAAO,OAAO,OAAO,EAAE,IAAI,sCAAsC,MAAM,IAAI,QAAQ;AACtH;;AAGA,SAAgB,YAAY,MAAyC;CACnE,MAAM,QAAQ,OAAO,QAAQ,EAAE,CAAC,CAC7B,QAAQ,kBAAkB,GAAG,CAAC,CAC9B,KAAK,CAAC,CACN,MAAM,KAAK,CAAC,CACZ,OAAO,OAAO;CACjB,QAAQ,MAAM,SAAS,IAAI,MAAM,MAAM,GAAG,CAAC,CAAC,CAAC,KAAK,SAAS,KAAK,OAAO,CAAC,CAAC,CAAC,CAAC,KAAK,EAAE,KAAK,MAAM,MAAM,IAAA,CAAK,MAAM,GAAG,CAAC,EAAA,CAAG,YAAY;AACnI"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@firetail/finchly-ux",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "finchly-ux: the components every page of the Finchly platform and of its apps is built from, and the toolchain that builds and checks them",
5
5
  "type": "module",
6
6
  "repository": {