@activecollab/components 2.0.593 → 2.0.595

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.
Files changed (56) hide show
  1. package/dist/cjs/components/Filter/Filter.js +29 -27
  2. package/dist/cjs/components/Filter/Filter.js.map +1 -1
  3. package/dist/cjs/components/Filter/StartMenu.js +6 -7
  4. package/dist/cjs/components/Filter/StartMenu.js.map +1 -1
  5. package/dist/cjs/components/Filter/index.js +11 -0
  6. package/dist/cjs/components/Filter/index.js.map +1 -1
  7. package/dist/cjs/components/Filter/isFilterEntryVisible.js +28 -0
  8. package/dist/cjs/components/Filter/isFilterEntryVisible.js.map +1 -0
  9. package/dist/cjs/presentation/appsAndIntegrations/McpIntegration.js +848 -0
  10. package/dist/cjs/presentation/appsAndIntegrations/McpIntegration.js.map +1 -0
  11. package/dist/cjs/presentation/appsAndIntegrations/mcpData.js +149 -0
  12. package/dist/cjs/presentation/appsAndIntegrations/mcpData.js.map +1 -0
  13. package/dist/cjs/presentation/shared/CopySnippet.js +56 -0
  14. package/dist/cjs/presentation/shared/CopySnippet.js.map +1 -0
  15. package/dist/cjs/presentation/shared/LinkingCommandsButton.js +21 -62
  16. package/dist/cjs/presentation/shared/LinkingCommandsButton.js.map +1 -1
  17. package/dist/cjs/presentation/shared/index.js +8 -0
  18. package/dist/cjs/presentation/shared/index.js.map +1 -1
  19. package/dist/esm/components/Filter/Filter.d.ts.map +1 -1
  20. package/dist/esm/components/Filter/Filter.js +26 -28
  21. package/dist/esm/components/Filter/Filter.js.map +1 -1
  22. package/dist/esm/components/Filter/StartMenu.d.ts.map +1 -1
  23. package/dist/esm/components/Filter/StartMenu.js +6 -7
  24. package/dist/esm/components/Filter/StartMenu.js.map +1 -1
  25. package/dist/esm/components/Filter/index.d.ts +1 -0
  26. package/dist/esm/components/Filter/index.d.ts.map +1 -1
  27. package/dist/esm/components/Filter/index.js +1 -0
  28. package/dist/esm/components/Filter/index.js.map +1 -1
  29. package/dist/esm/components/Filter/isFilterEntryVisible.d.ts +3 -0
  30. package/dist/esm/components/Filter/isFilterEntryVisible.d.ts.map +1 -0
  31. package/dist/esm/components/Filter/isFilterEntryVisible.js +14 -0
  32. package/dist/esm/components/Filter/isFilterEntryVisible.js.map +1 -0
  33. package/dist/esm/presentation/appsAndIntegrations/McpIntegration.d.ts +18 -0
  34. package/dist/esm/presentation/appsAndIntegrations/McpIntegration.d.ts.map +1 -0
  35. package/dist/esm/presentation/appsAndIntegrations/McpIntegration.js +735 -0
  36. package/dist/esm/presentation/appsAndIntegrations/McpIntegration.js.map +1 -0
  37. package/dist/esm/presentation/appsAndIntegrations/mcpData.d.ts +53 -0
  38. package/dist/esm/presentation/appsAndIntegrations/mcpData.d.ts.map +1 -0
  39. package/dist/esm/presentation/appsAndIntegrations/mcpData.js +143 -0
  40. package/dist/esm/presentation/appsAndIntegrations/mcpData.js.map +1 -0
  41. package/dist/esm/presentation/shared/CopySnippet.d.ts +7 -0
  42. package/dist/esm/presentation/shared/CopySnippet.d.ts.map +1 -0
  43. package/dist/esm/presentation/shared/CopySnippet.js +40 -0
  44. package/dist/esm/presentation/shared/CopySnippet.js.map +1 -0
  45. package/dist/esm/presentation/shared/LinkingCommandsButton.d.ts.map +1 -1
  46. package/dist/esm/presentation/shared/LinkingCommandsButton.js +19 -57
  47. package/dist/esm/presentation/shared/LinkingCommandsButton.js.map +1 -1
  48. package/dist/esm/presentation/shared/index.d.ts +2 -0
  49. package/dist/esm/presentation/shared/index.d.ts.map +1 -1
  50. package/dist/esm/presentation/shared/index.js +1 -0
  51. package/dist/esm/presentation/shared/index.js.map +1 -1
  52. package/dist/index.js +56 -34
  53. package/dist/index.js.map +1 -1
  54. package/dist/index.min.js +1 -1
  55. package/dist/index.min.js.map +1 -1
  56. package/package.json +1 -1
@@ -0,0 +1,14 @@
1
+ const toSelectedIds = value => [].concat(value != null ? value : []).map(String);
2
+ const toOptionIds = submenu => (submenu != null ? submenu : []).flatMap(option => "options" in option && Array.isArray(option.options) ? option.options.map(_ref => {
3
+ let id = _ref.id;
4
+ return String(id);
5
+ }) : [String(option.id)]);
6
+ const hasSelectedOption = (entry, selected) => {
7
+ const optionIds = toOptionIds(entry.submenu);
8
+ return toSelectedIds(selected[entry.id]).some(id => optionIds.includes(id));
9
+ };
10
+ export const isFilterEntryVisible = (entry, selected) => {
11
+ var _entry$submenu;
12
+ return entry.type === "input" || ((_entry$submenu = entry.submenu) == null ? void 0 : _entry$submenu.length) > 1 || hasSelectedOption(entry, selected);
13
+ };
14
+ //# sourceMappingURL=isFilterEntryVisible.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"isFilterEntryVisible.js","names":["toSelectedIds","value","concat","map","String","toOptionIds","submenu","flatMap","option","Array","isArray","options","_ref","id","hasSelectedOption","entry","selected","optionIds","some","includes","isFilterEntryVisible","_entry$submenu","type","length"],"sources":["../../../../src/components/Filter/isFilterEntryVisible.ts"],"sourcesContent":["import type { DataType, SelectedType } from \"./Filter\";\nimport type { IOptionGroupProps, IOptionItemProps } from \"../Select\";\n\ntype SelectedValue = SelectedType[keyof SelectedType] | string | number;\n\nconst toSelectedIds = (value: SelectedValue | undefined): string[] =>\n ([] as Array<string | number>).concat(value ?? []).map(String);\n\nconst toOptionIds = (\n submenu?: Array<IOptionGroupProps | IOptionItemProps> | null\n): string[] =>\n (submenu ?? []).flatMap((option) =>\n \"options\" in option && Array.isArray(option.options)\n ? option.options.map(({ id }) => String(id))\n : [String(option.id)]\n );\n\nconst hasSelectedOption = (entry: DataType, selected: SelectedType) => {\n const optionIds = toOptionIds(entry.submenu);\n\n return toSelectedIds(selected[entry.id]).some((id) => optionIds.includes(id));\n};\n\nexport const isFilterEntryVisible = (\n entry: DataType,\n selected: SelectedType\n): boolean =>\n entry.type === \"input\" ||\n entry.submenu?.length > 1 ||\n hasSelectedOption(entry, selected);\n"],"mappings":"AAKA,MAAMA,aAAa,GAAIC,KAAgC,IACpD,EAAE,CAA4BC,MAAM,CAACD,KAAK,WAALA,KAAK,GAAI,EAAE,CAAC,CAACE,GAAG,CAACC,MAAM,CAAC;AAEhE,MAAMC,WAAW,GACfC,OAA4D,IAE5D,CAACA,OAAO,WAAPA,OAAO,GAAI,EAAE,EAAEC,OAAO,CAAEC,MAAM,IAC7B,SAAS,IAAIA,MAAM,IAAIC,KAAK,CAACC,OAAO,CAACF,MAAM,CAACG,OAAO,CAAC,GAChDH,MAAM,CAACG,OAAO,CAACR,GAAG,CAACS,IAAA;EAAA,IAAGC,EAAE,GAAAD,IAAA,CAAFC,EAAE;EAAA,OAAOT,MAAM,CAACS,EAAE,CAAC;AAAA,EAAC,GAC1C,CAACT,MAAM,CAACI,MAAM,CAACK,EAAE,CAAC,CACxB,CAAC;AAEH,MAAMC,iBAAiB,GAAGA,CAACC,KAAe,EAAEC,QAAsB,KAAK;EACrE,MAAMC,SAAS,GAAGZ,WAAW,CAACU,KAAK,CAACT,OAAO,CAAC;EAE5C,OAAON,aAAa,CAACgB,QAAQ,CAACD,KAAK,CAACF,EAAE,CAAC,CAAC,CAACK,IAAI,CAAEL,EAAE,IAAKI,SAAS,CAACE,QAAQ,CAACN,EAAE,CAAC,CAAC;AAC/E,CAAC;AAED,OAAO,MAAMO,oBAAoB,GAAGA,CAClCL,KAAe,EACfC,QAAsB;EAAA,IAAAK,cAAA;EAAA,OAEtBN,KAAK,CAACO,IAAI,KAAK,OAAO,IACtB,EAAAD,cAAA,GAAAN,KAAK,CAACT,OAAO,qBAAbe,cAAA,CAAeE,MAAM,IAAG,CAAC,IACzBT,iBAAiB,CAACC,KAAK,EAAEC,QAAQ,CAAC;AAAA","ignoreList":[]}
@@ -0,0 +1,18 @@
1
+ import { ReactElement } from "react";
2
+ import { McpTokenRow } from "./mcpData";
3
+ export interface NewMcpToken {
4
+ client_name: string;
5
+ client_vendor: string;
6
+ is_read_write: boolean;
7
+ }
8
+ export interface McpIntegrationContentProps {
9
+ initialTokens: McpTokenRow[];
10
+ }
11
+ /**
12
+ * Everything under the MCP page header separator: the clients table (or the
13
+ * empty state), prompt examples, and the dialogs the page opens — Add MCP
14
+ * Client, Use Token, Delete Token, Disconnect Agent, Disconnect All
15
+ * Connections, and the OAuth access change confirmation.
16
+ */
17
+ export declare const McpIntegrationContent: ({ initialTokens, }: McpIntegrationContentProps) => ReactElement;
18
+ //# sourceMappingURL=McpIntegration.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"McpIntegration.d.ts","sourceRoot":"","sources":["../../../../src/presentation/appsAndIntegrations/McpIntegration.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,YAAY,EAAgC,MAAM,OAAO,CAAC;AAI1E,OAAO,EAIL,WAAW,EACZ,MAAM,WAAW,CAAC;AAisBnB,MAAM,WAAW,WAAW;IAC1B,WAAW,EAAE,MAAM,CAAC;IACpB,aAAa,EAAE,MAAM,CAAC;IACtB,aAAa,EAAE,OAAO,CAAC;CACxB;AAqYD,MAAM,WAAW,0BAA0B;IACzC,aAAa,EAAE,WAAW,EAAE,CAAC;CAC9B;AAED;;;;;GAKG;AACH,eAAO,MAAM,qBAAqB,GAAI,oBAEnC,0BAA0B,KAAG,YAkM/B,CAAC"}