conzo 0.0.9 → 0.0.12

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 (104) hide show
  1. package/package.json +3 -2
  2. package/src/Component.d.ts +7 -0
  3. package/src/Component.d.ts.map +1 -0
  4. package/{Component.js → src/Component.js} +3 -2
  5. package/src/Component.js.map +1 -0
  6. package/src/ConfirmStatus.d.ts +4 -0
  7. package/src/ConfirmStatus.d.ts.map +1 -0
  8. package/{ConfirmStatus.js → src/ConfirmStatus.js} +3 -3
  9. package/src/ConfirmStatus.js.map +1 -0
  10. package/src/Error.d.ts +6 -0
  11. package/src/Error.d.ts.map +1 -0
  12. package/{Error.js → src/Error.js} +4 -4
  13. package/src/Error.js.map +1 -0
  14. package/src/Footer.d.ts +2 -0
  15. package/src/Footer.d.ts.map +1 -0
  16. package/src/Footer.js +5 -0
  17. package/src/Footer.js.map +1 -0
  18. package/{GoogleChrome.d.ts → src/GoogleChrome.d.ts} +4 -4
  19. package/src/GoogleChrome.d.ts.map +1 -0
  20. package/{GoogleChrome.js → src/GoogleChrome.js} +9 -11
  21. package/src/GoogleChrome.js.map +1 -0
  22. package/src/Notes.d.ts +2 -0
  23. package/src/Notes.d.ts.map +1 -0
  24. package/src/Notes.js +5 -0
  25. package/src/Notes.js.map +1 -0
  26. package/src/Search.d.ts +8 -0
  27. package/src/Search.d.ts.map +1 -0
  28. package/{Search.js → src/Search.js} +15 -19
  29. package/src/Search.js.map +1 -0
  30. package/{SelectBox.d.ts → src/SelectBox.d.ts} +2 -2
  31. package/src/SelectBox.d.ts.map +1 -0
  32. package/{SelectBox.js → src/SelectBox.js} +8 -7
  33. package/src/SelectBox.js.map +1 -0
  34. package/{ViewContext.d.ts → src/ViewContext.d.ts} +3 -2
  35. package/src/ViewContext.d.ts.map +1 -0
  36. package/{ViewContext.js → src/ViewContext.js} +3 -1
  37. package/src/ViewContext.js.map +1 -0
  38. package/src/app.d.ts +2 -0
  39. package/src/app.d.ts.map +1 -0
  40. package/{app.js → src/app.js} +3 -3
  41. package/src/app.js.map +1 -0
  42. package/{apps → src/apps}/ApplicationsCacheContext.d.ts +2 -1
  43. package/src/apps/ApplicationsCacheContext.d.ts.map +1 -0
  44. package/{apps → src/apps}/ApplicationsCacheContext.js +3 -1
  45. package/src/apps/ApplicationsCacheContext.js.map +1 -0
  46. package/{apps → src/apps}/RefreshApps.d.ts +1 -0
  47. package/src/apps/RefreshApps.d.ts.map +1 -0
  48. package/{apps → src/apps}/RefreshApps.js +1 -0
  49. package/src/apps/RefreshApps.js.map +1 -0
  50. package/{config → src/config}/ConfigContext.d.ts +3 -2
  51. package/src/config/ConfigContext.d.ts.map +1 -0
  52. package/{config → src/config}/ConfigContext.js +3 -1
  53. package/src/config/ConfigContext.js.map +1 -0
  54. package/src/config/parseAndValidate.d.ts +3 -0
  55. package/src/config/parseAndValidate.d.ts.map +1 -0
  56. package/{config → src/config}/parseAndValidate.js +1 -0
  57. package/src/config/parseAndValidate.js.map +1 -0
  58. package/{config → src/config}/types.d.ts +2 -1
  59. package/src/config/types.d.ts.map +1 -0
  60. package/src/config/types.js +2 -0
  61. package/src/config/types.js.map +1 -0
  62. package/{debugging → src/debugging}/useExitAppRightAway.d.ts +1 -0
  63. package/src/debugging/useExitAppRightAway.d.ts.map +1 -0
  64. package/{debugging → src/debugging}/useExitAppRightAway.js +1 -0
  65. package/src/debugging/useExitAppRightAway.js.map +1 -0
  66. package/{helpers → src/helpers}/EscapeBackToSearch.d.ts +2 -1
  67. package/src/helpers/EscapeBackToSearch.d.ts.map +1 -0
  68. package/src/helpers/EscapeBackToSearch.js +16 -0
  69. package/src/helpers/EscapeBackToSearch.js.map +1 -0
  70. package/{helpers → src/helpers}/spawnProcess.d.ts +1 -0
  71. package/src/helpers/spawnProcess.d.ts.map +1 -0
  72. package/{helpers → src/helpers}/spawnProcess.js +1 -0
  73. package/src/helpers/spawnProcess.js.map +1 -0
  74. package/{helpers → src/helpers}/tryCatch.d.ts +1 -0
  75. package/src/helpers/tryCatch.d.ts.map +1 -0
  76. package/{helpers → src/helpers}/tryCatch.js +1 -0
  77. package/src/helpers/tryCatch.js.map +1 -0
  78. package/{Conzo.d.ts → src/index.d.ts} +2 -1
  79. package/src/index.d.ts.map +1 -0
  80. package/{Conzo.js → src/index.js} +5 -7
  81. package/src/index.js.map +1 -0
  82. package/src/items/items.d.ts +7 -0
  83. package/src/items/items.d.ts.map +1 -0
  84. package/{items → src/items}/items.js +3 -1
  85. package/src/items/items.js.map +1 -0
  86. package/{items → src/items}/types.d.ts +1 -0
  87. package/src/items/types.d.ts.map +1 -0
  88. package/src/items/types.js +2 -0
  89. package/src/items/types.js.map +1 -0
  90. package/tsconfig.tsbuildinfo +1 -0
  91. package/Component.d.ts +0 -7
  92. package/ConfirmStatus.d.ts +0 -4
  93. package/Error.d.ts +0 -6
  94. package/Footer.d.ts +0 -2
  95. package/Footer.js +0 -4
  96. package/Notes.d.ts +0 -2
  97. package/Notes.js +0 -4
  98. package/Search.d.ts +0 -8
  99. package/app.d.ts +0 -2
  100. package/config/parseAndValidate.d.ts +0 -2
  101. package/config/types.js +0 -1
  102. package/helpers/EscapeBackToSearch.js +0 -20
  103. package/items/items.d.ts +0 -6
  104. package/items/types.js +0 -1
package/package.json CHANGED
@@ -1,7 +1,8 @@
1
1
  {
2
2
  "name": "conzo",
3
- "version": "0.0.9",
4
- "main": "./Conzo.js",
3
+ "version": "0.0.12",
4
+ "type": "module",
5
+ "main": "./src/index.js",
5
6
  "files": ["**/*"],
6
7
  "dependencies": {"ink":"^5.0.1","ink-text-input":"^6.0.0","meow":"^13.2.0","react":"^18.3.1","react-error-boundary":"^4.1.2"},
7
8
  "author": "Bouwe",
@@ -0,0 +1,7 @@
1
+ import type { ReactItem } from './items/types.js';
2
+ type ComponentProps = {
3
+ item: ReactItem;
4
+ };
5
+ export declare const Component: ({ item }: ComponentProps) => import("react/jsx-runtime").JSX.Element;
6
+ export {};
7
+ //# sourceMappingURL=Component.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Component.d.ts","sourceRoot":"","sources":["../../src/Component.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAA;AAGjD,KAAK,cAAc,GAAG;IAAE,IAAI,EAAE,SAAS,CAAA;CAAE,CAAA;AAEzC,eAAO,MAAM,SAAS,aAAc,cAAc,4CAQjD,CAAA"}
@@ -1,7 +1,8 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
1
2
  import React from 'react';
2
3
  import { EscapeBackToSearch } from './helpers/EscapeBackToSearch.js';
3
4
  export const Component = ({ item }) => {
4
5
  const { action: Component, name } = item;
5
- return (React.createElement(EscapeBackToSearch, { title: name },
6
- React.createElement(Component, null)));
6
+ return (_jsx(EscapeBackToSearch, { title: name, children: _jsx(Component, {}) }));
7
7
  };
8
+ //# sourceMappingURL=Component.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Component.js","sourceRoot":"","sources":["../../src/Component.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAA;AAIpE,MAAM,CAAC,MAAM,SAAS,GAAG,CAAC,EAAE,IAAI,EAAkB,EAAE,EAAE;IACpD,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,IAAI,EAAE,GAAG,IAAI,CAAA;IAExC,OAAO,CACL,KAAC,kBAAkB,IAAC,KAAK,EAAE,IAAI,YAC7B,KAAC,SAAS,KAAG,GACM,CACtB,CAAA;AACH,CAAC,CAAA"}
@@ -0,0 +1,4 @@
1
+ export declare const ConfirmStatus: ({ command }: {
2
+ command: string;
3
+ }) => import("react/jsx-runtime").JSX.Element;
4
+ //# sourceMappingURL=ConfirmStatus.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ConfirmStatus.d.ts","sourceRoot":"","sources":["../../src/ConfirmStatus.tsx"],"names":[],"mappings":"AASA,eAAO,MAAM,aAAa,gBAAiB;IAAE,OAAO,EAAE,MAAM,CAAA;CAAE,4CAmB7D,CAAA"}
@@ -1,3 +1,4 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
1
2
  import React, { useEffect, useState } from 'react';
2
3
  import { Box, Text } from 'ink';
3
4
  import childProcess from 'child_process';
@@ -13,7 +14,6 @@ export const ConfirmStatus = ({ command }) => {
13
14
  setStatus('Done!');
14
15
  }
15
16
  }, [command]);
16
- return (React.createElement(Box, null,
17
- React.createElement(Text, null, typeof status === 'string' ? status : status.type),
18
- typeof status === 'object' && React.createElement(Text, { color: "red" }, status.error)));
17
+ return (_jsxs(Box, { children: [_jsx(Text, { children: typeof status === 'string' ? status : status.type }), typeof status === 'object' && _jsx(Text, { color: "red", children: status.error })] }));
19
18
  };
19
+ //# sourceMappingURL=ConfirmStatus.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ConfirmStatus.js","sourceRoot":"","sources":["../../src/ConfirmStatus.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAClD,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,KAAK,CAAA;AAC/B,OAAO,YAAY,MAAM,eAAe,CAAA;AACxC,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAA;AAMhD,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,EAAE,OAAO,EAAuB,EAAE,EAAE;IAChE,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,GAAG,QAAQ,CAAS,YAAY,CAAC,CAAA;IAE1D,SAAS,CAAC,GAAG,EAAE;QACb,MAAM,EAAE,KAAK,EAAE,GAAG,QAAQ,CAAC,GAAG,EAAE,CAAC,YAAY,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAA;QAE3E,IAAI,KAAK,EAAE,CAAC;YACV,SAAS,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,KAAK,CAAC,OAAO,EAAE,CAAC,CAAA;QACrD,CAAC;aAAM,CAAC;YACN,SAAS,CAAC,OAAO,CAAC,CAAA;QACpB,CAAC;IACH,CAAC,EAAE,CAAC,OAAO,CAAC,CAAC,CAAA;IAEb,OAAO,CACL,MAAC,GAAG,eACF,KAAC,IAAI,cAAE,OAAO,MAAM,KAAK,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,IAAI,GAAQ,EAC/D,OAAO,MAAM,KAAK,QAAQ,IAAI,KAAC,IAAI,IAAC,KAAK,EAAC,KAAK,YAAE,MAAM,CAAC,KAAK,GAAQ,IAClE,CACP,CAAA;AACH,CAAC,CAAA"}
package/src/Error.d.ts ADDED
@@ -0,0 +1,6 @@
1
+ import type { FallbackProps } from 'react-error-boundary';
2
+ export declare const Error: ({ error }: {
3
+ error: Error;
4
+ }) => import("react/jsx-runtime").JSX.Element;
5
+ export declare const Fallback: ({ error }: FallbackProps) => import("react/jsx-runtime").JSX.Element;
6
+ //# sourceMappingURL=Error.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Error.d.ts","sourceRoot":"","sources":["../../src/Error.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAA;AAGzD,eAAO,MAAM,KAAK,cAAe;IAAE,KAAK,EAAE,KAAK,CAAA;CAAE,4CAsBhD,CAAA;AAGD,eAAO,MAAM,QAAQ,cAAe,aAAa,4CAIhD,CAAA"}
@@ -1,3 +1,4 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
1
2
  import React from 'react';
2
3
  import { EscapeBackToSearch } from './helpers/EscapeBackToSearch.js';
3
4
  import { Box, Text, useInput } from 'ink';
@@ -9,12 +10,11 @@ export const Error = ({ error }) => {
9
10
  setShowStack((prev) => !prev);
10
11
  }
11
12
  });
12
- return (React.createElement(EscapeBackToSearch, { title: "Oops..." },
13
- React.createElement(Text, null, error.message),
14
- React.createElement(Box, { marginTop: 1 }, showStack ? (React.createElement(Text, null, error.stack)) : (React.createElement(Text, null, "S = show stack trace")))));
13
+ return (_jsxs(EscapeBackToSearch, { title: "Oops...", children: [_jsx(Text, { children: error.message }), _jsx(Box, { marginTop: 1, children: showStack ? (_jsx(Text, { children: error.stack })) : (_jsx(Text, { children: "S = show stack trace" })) })] }));
15
14
  };
16
15
  // Standalone Error component
17
16
  export const Fallback = ({ error }) => {
18
17
  // Call resetErrorBoundary() to reset the error boundary and retry the render.
19
- return React.createElement(Text, null, error.message);
18
+ return _jsx(Text, { children: error.message });
20
19
  };
20
+ //# sourceMappingURL=Error.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Error.js","sourceRoot":"","sources":["../../src/Error.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAA;AAEpE,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,KAAK,CAAA;AAEzC,MAAM,CAAC,MAAM,KAAK,GAAG,CAAC,EAAE,KAAK,EAAoB,EAAE,EAAE;IACnD,MAAM,CAAC,SAAS,EAAE,YAAY,CAAC,GAAG,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAA;IAEvD,kFAAkF;IAClF,QAAQ,CAAC,CAAC,KAAK,EAAE,EAAE;QACjB,IAAI,KAAK,KAAK,GAAG,EAAE,CAAC;YAClB,YAAY,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,IAAI,CAAC,CAAA;QAC/B,CAAC;IACH,CAAC,CAAC,CAAA;IAEF,OAAO,CACL,MAAC,kBAAkB,IAAC,KAAK,EAAC,SAAS,aACjC,KAAC,IAAI,cAAE,KAAK,CAAC,OAAO,GAAQ,EAC5B,KAAC,GAAG,IAAC,SAAS,EAAE,CAAC,YACd,SAAS,CAAC,CAAC,CAAC,CACX,KAAC,IAAI,cAAE,KAAK,CAAC,KAAK,GAAQ,CAC3B,CAAC,CAAC,CAAC,CACF,KAAC,IAAI,uCAA4B,CAClC,GACG,IACa,CACtB,CAAA;AACH,CAAC,CAAA;AAED,6BAA6B;AAC7B,MAAM,CAAC,MAAM,QAAQ,GAAG,CAAC,EAAE,KAAK,EAAiB,EAAE,EAAE;IACnD,8EAA8E;IAE9E,OAAO,KAAC,IAAI,cAAG,KAA0B,CAAC,OAAO,GAAQ,CAAA;AAC3D,CAAC,CAAA"}
@@ -0,0 +1,2 @@
1
+ export declare const Footer: () => import("react/jsx-runtime").JSX.Element;
2
+ //# sourceMappingURL=Footer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Footer.d.ts","sourceRoot":"","sources":["../../src/Footer.tsx"],"names":[],"mappings":"AAGA,eAAO,MAAM,MAAM,+CAIlB,CAAA"}
package/src/Footer.js ADDED
@@ -0,0 +1,5 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import React from 'react';
3
+ import { Box, Text } from 'ink';
4
+ export const Footer = () => (_jsx(Box, { justifyContent: "flex-end", children: _jsx(Text, { children: "conzo" }) }));
5
+ //# sourceMappingURL=Footer.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Footer.js","sourceRoot":"","sources":["../../src/Footer.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,KAAK,CAAA;AAE/B,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,EAAE,CAAC,CAC1B,KAAC,GAAG,IAAC,cAAc,EAAC,UAAU,YAC5B,KAAC,IAAI,wBAAa,GACd,CACP,CAAA"}
@@ -1,10 +1,10 @@
1
- import React from 'react';
2
- import { BookmarkInfo } from './items/types.js';
1
+ import type { BookmarkInfo } from './items/types.js';
3
2
  export declare const openChrome: (profile: string, url?: string) => Promise<void>;
4
3
  export declare const openBookmark: (bookmark: BookmarkInfo) => void;
5
4
  export declare const OpenChrome: ({ url }: {
6
5
  url?: string;
7
- }) => React.JSX.Element;
6
+ }) => import("react/jsx-runtime").JSX.Element;
8
7
  export declare const GoogleChromeWithProfile: ({ url }: {
9
8
  url?: string;
10
- }) => React.JSX.Element;
9
+ }) => import("react/jsx-runtime").JSX.Element;
10
+ //# sourceMappingURL=GoogleChrome.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GoogleChrome.d.ts","sourceRoot":"","sources":["../../src/GoogleChrome.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAA;AAQpD,eAAO,MAAM,UAAU,YAAmB,MAAM,QAAQ,MAAM,kBAQ7D,CAAA;AAED,eAAO,MAAM,YAAY,aAAc,YAAY,SAElD,CAAA;AAED,eAAO,MAAM,UAAU,YAAa;IAAE,GAAG,CAAC,EAAE,MAAM,CAAA;CAAE,4CA4BnD,CAAA;AAED,eAAO,MAAM,uBAAuB,YAAa;IAAE,GAAG,CAAC,EAAE,MAAM,CAAA;CAAE,4CAEhE,CAAA"}
@@ -1,3 +1,4 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
1
2
  import React from 'react';
2
3
  import { Box, Text } from 'ink';
3
4
  import { useView } from './ViewContext.js';
@@ -22,18 +23,15 @@ export const OpenChrome = ({ url }) => {
22
23
  const { goToView } = useView();
23
24
  const { chromeProfiles } = useConfig();
24
25
  if (!chromeProfiles) {
25
- return (React.createElement(Box, { flexDirection: "column" },
26
- React.createElement(Text, { bold: true }, "No Chrome profiles found"),
27
- React.createElement(Text, null, "Make sure you have set up your Chrome profiles in the config.")));
26
+ return (_jsxs(Box, { flexDirection: "column", children: [_jsx(Text, { bold: true, children: "No Chrome profiles found" }), _jsx(Text, { children: "Make sure you have set up your Chrome profiles in the config." })] }));
28
27
  }
29
- return (React.createElement(Box, { flexDirection: "column" },
30
- React.createElement(Text, null, "Select your account"),
31
- React.createElement(SelectBox, { items: Object.keys(chromeProfiles), onSelect: (account) => {
32
- if (chromeProfiles[account])
33
- openChrome(chromeProfiles[account], url);
34
- goToView('search');
35
- }, width: 30 })));
28
+ return (_jsxs(Box, { flexDirection: "column", children: [_jsx(Text, { children: "Select your account" }), _jsx(SelectBox, { items: Object.keys(chromeProfiles), onSelect: (account) => {
29
+ if (chromeProfiles[account])
30
+ openChrome(chromeProfiles[account], url);
31
+ goToView('search');
32
+ }, width: 30 })] }));
36
33
  };
37
34
  export const GoogleChromeWithProfile = ({ url }) => {
38
- return React.createElement(OpenChrome, { url: url });
35
+ return _jsx(OpenChrome, { url: url });
39
36
  };
37
+ //# sourceMappingURL=GoogleChrome.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GoogleChrome.js","sourceRoot":"","sources":["../../src/GoogleChrome.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,KAAK,CAAA;AAC/B,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAA;AAC1C,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAA;AAErD,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAA;AACxD,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAA;AAE1C,+CAA+C;AAE/C,MAAM,eAAe,GAAG,SAAS,CAAA;AAEjC,MAAM,CAAC,MAAM,UAAU,GAAG,KAAK,EAAE,OAAe,EAAE,GAAY,EAAE,EAAE;IAChE,MAAM,YAAY,CAAC,MAAM,EAAE;QACzB,KAAK;QACL,eAAe;QACf,QAAQ;QACR,uBAAuB,OAAO,EAAE;QAChC,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;KACtB,CAAC,CAAA;AACJ,CAAC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@@
1
+ {"version":3,"file":"Notes.d.ts","sourceRoot":"","sources":["../../src/Notes.tsx"],"names":[],"mappings":"AAGA,eAAO,MAAM,KAAK,+CAIjB,CAAA"}
package/src/Notes.js ADDED
@@ -0,0 +1,5 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { Box, Text } from 'ink';
3
+ import React from 'react';
4
+ export const Notes = () => (_jsx(Box, { children: _jsx(Text, { children: "Notes..." }) }));
5
+ //# sourceMappingURL=Notes.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Notes.js","sourceRoot":"","sources":["../../src/Notes.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,KAAK,CAAA;AAC/B,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,MAAM,CAAC,MAAM,KAAK,GAAG,GAAG,EAAE,CAAC,CACzB,KAAC,GAAG,cACF,KAAC,IAAI,2BAAgB,GACjB,CACP,CAAA"}
@@ -0,0 +1,8 @@
1
+ import type { Item } from './items/types.js';
2
+ type Props = {
3
+ width: number;
4
+ choose: (item: Item) => void;
5
+ };
6
+ export declare const Search: ({ width, choose }: Props) => import("react/jsx-runtime").JSX.Element;
7
+ export {};
8
+ //# sourceMappingURL=Search.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Search.d.ts","sourceRoot":"","sources":["../../src/Search.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAA;AAmG5C,KAAK,KAAK,GAAG;IACX,KAAK,EAAE,MAAM,CAAA;IACb,MAAM,EAAE,CAAC,IAAI,EAAE,IAAI,KAAK,IAAI,CAAA;CAC7B,CAAA;AAED,eAAO,MAAM,MAAM,sBAAuB,KAAK,4CA+E9C,CAAA"}
@@ -1,3 +1,4 @@
1
+ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
1
2
  import React from 'react';
2
3
  import TextInput from 'ink-text-input';
3
4
  import { Box, Text, useInput } from 'ink';
@@ -101,23 +102,18 @@ export const Search = ({ width, choose }) => {
101
102
  setQuery(query);
102
103
  dispatch({ type: 'FILTER_RESULTS', query });
103
104
  };
104
- return (React.createElement(React.Fragment, null,
105
- React.createElement(Box, { borderStyle: "round", borderColor: config.theme.color },
106
- React.createElement(TextInput, { value: query, onChange: filter, showCursor: true, placeholder: "Search...", onSubmit: () => {
107
- if (selectedItem)
108
- choose(selectedItem);
109
- } })),
110
- React.createElement(Text, null, filteredResults.length === 0 && 'No items...'),
111
- React.createElement(Box, { borderStyle: filteredResults.length > 0 ? 'round' : undefined, borderColor: filteredResults.length > 0 ? 'grey' : undefined, flexDirection: "column" }, filteredResults
112
- .slice(visibleStartIndex, visibleStartIndex + MAX_VISIBLE_RESULTS)
113
- .map((item) => {
114
- const selected = selectedItem?.name === item.name;
115
- // 5 is an arbitrary number of some spaces around the item name, and some built-in padding.
116
- let name = ` ${item.name}${' '.repeat(width > 0 ? width - 5 - item.name.length : 0)}`;
117
- if (item.actionType === 'Show UI')
118
- name = name.slice(0, -2) + '> ';
119
- return (React.createElement(Box, { key: item.name },
120
- React.createElement(Text, { backgroundColor: selected ? config.theme.color : undefined, bold: selected },
121
- React.createElement(Text, null, name))));
122
- }))));
105
+ return (_jsxs(_Fragment, { children: [_jsx(Box, { borderStyle: "round", borderColor: config.theme.color, children: _jsx(TextInput, { value: query, onChange: filter, showCursor: true, placeholder: "Search...", onSubmit: () => {
106
+ if (selectedItem)
107
+ choose(selectedItem);
108
+ } }) }), _jsx(Text, { children: filteredResults.length === 0 && 'No items...' }), _jsx(Box, { borderStyle: filteredResults.length > 0 ? 'round' : undefined, borderColor: filteredResults.length > 0 ? 'grey' : undefined, flexDirection: "column", children: filteredResults
109
+ .slice(visibleStartIndex, visibleStartIndex + MAX_VISIBLE_RESULTS)
110
+ .map((item) => {
111
+ const selected = selectedItem?.name === item.name;
112
+ // 5 is an arbitrary number of some spaces around the item name, and some built-in padding.
113
+ let name = ` ${item.name}${' '.repeat(width > 0 ? width - 5 - item.name.length : 0)}`;
114
+ if (item.actionType === 'Show UI')
115
+ name = name.slice(0, -2) + '> ';
116
+ return (_jsx(Box, { children: _jsx(Text, { backgroundColor: selected ? config.theme.color : undefined, bold: selected, children: _jsx(Text, { children: name }) }) }, item.name));
117
+ }) })] }));
123
118
  };
119
+ //# sourceMappingURL=Search.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Search.js","sourceRoot":"","sources":["../../src/Search.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,SAAS,MAAM,gBAAgB,CAAA;AACtC,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,KAAK,CAAA;AACzC,OAAO,EAAE,oBAAoB,EAAE,MAAM,oCAAoC,CAAA;AACzE,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAA;AACrD,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAA;AAE1C,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAA;AAE3C,MAAM,mBAAmB,GAAG,EAAE,CAAA;AAE9B,MAAM,YAAY,GAAG;IACnB,QAAQ,EAAE,EAAE;IACZ,eAAe,EAAE,EAAE;IACnB,YAAY,EAAE,IAAI;IAClB,iBAAiB,EAAE,CAAC;CACrB,CAAA;AAuBD,MAAM,cAAc,GAAG,CAAC,KAAmB,EAAE,MAAqB,EAAE,EAAE;IACpE,QAAQ,MAAM,CAAC,IAAI,EAAE,CAAC;QACpB,KAAK,YAAY,CAAC,CAAC,CAAC;YAClB,MAAM,QAAQ,GAAG,MAAM,CAAC,OAAO,CAAA;YAC/B,OAAO;gBACL,GAAG,KAAK;gBACR,QAAQ;gBACR,eAAe,EAAE,QAAQ;gBACzB,YAAY,EAAE,QAAQ,CAAC,CAAC,CAAC,IAAI,IAAI;aAClC,CAAA;QACH,CAAC;QACD,KAAK,gBAAgB,CAA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AAW,EAAE,eAAe,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,EAC7D,WAAW,EAAE,eAAe,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,EAC5D,aAAa,EAAC,QAAQ,YAErB,eAAe;qBACb,KAAK,CAAC,iBAAiB,EAAE,iBAAiB,GAAG,mBAAmB,CAAC;qBACjE,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE;oBACZ,MAAM,QAAQ,GAAG,YAAY,EAAE,IAAI,KAAK,IAAI,CAAC,IAAI,CAAA;oBAEjD,2FAA2F;oBAC3F,IAAI,IAAI,GAAG,IAAI,IAAI,CAAC,IAAI,GAAG,GAAG,CAAC,MAAM,CAAC,KAAK,GAAG,CAAC,CAAC,CAAC,CAAC,KAAK,GAAG,CAAC,GAAG,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAA;oBACrF,IAAI,IAAI,CAAC,UAAU,KAAK,SAAS;wBAAE,IAAI,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,GAAG,IAAI,CAAA;oBAElE,OAAO,CACL,KAAC,GAAG,cACF,KAAC,IAAI,IACH,eAAe,EAAE,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,EAC1D,IAAI,EAAE,QAAQ,YAEd,KAAC,IAAI,cAAE,IAAI,GAAQ,GACd,IANC,IAAI,CAAC,IAAI,CAOb,CACP,CAAA;gBACH,CAAC,CAAC,GACA,IACL,CACJ,CAAA;AACH,CAAC,CAAA"}
@@ -1,8 +1,8 @@
1
- import React from 'react';
2
1
  export declare const SelectBox: ({ items, maxVisibleResults, onChange, onSelect, width, }: {
3
2
  items: string[];
4
3
  maxVisibleResults?: number;
5
4
  onChange?: (item: string) => void;
6
5
  onSelect: (item: string) => void;
7
6
  width?: number;
8
- }) => React.JSX.Element | null;
7
+ }) => import("react/jsx-runtime").JSX.Element | null;
8
+ //# sourceMappingURL=SelectBox.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SelectBox.d.ts","sourceRoot":"","sources":["../../src/SelectBox.tsx"],"names":[],"mappings":"AAMA,eAAO,MAAM,SAAS,6DAMnB;IACD,KAAK,EAAE,MAAM,EAAE,CAAA;IACf,iBAAiB,CAAC,EAAE,MAAM,CAAA;IAC1B,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAA;IACjC,QAAQ,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAA;IAChC,KAAK,CAAC,EAAE,MAAM,CAAA;CACf,mDAmEA,CAAA"}
@@ -1,3 +1,4 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
1
2
  import { Box, Text, useInput } from 'ink';
2
3
  import React from 'react';
3
4
  import { useConfig } from './config/ConfigContext.js';
@@ -38,11 +39,11 @@ export const SelectBox = ({ items, maxVisibleResults = 10, onChange = noop, onSe
38
39
  if (!width) {
39
40
  width = items.reduce((max, item) => Math.max(max, item.length), 0) + 4;
40
41
  }
41
- return (React.createElement(Box, { borderStyle: "round", borderColor: "grey", flexDirection: "column", width: width }, items.slice(startIndex, startIndex + maxVisibleResults).map((item) => {
42
- const selected = item === items[selectedIndex];
43
- // 3 is an arbitrary number of some spaces around the item name, and some built-in padding.
44
- let name = ` ${item}${' '.repeat(width > 0 ? width - 3 - item.length : 0)}`;
45
- return (React.createElement(Box, { key: item },
46
- React.createElement(Text, { backgroundColor: selected ? config.theme.color : undefined, bold: selected }, name)));
47
- })));
42
+ return (_jsx(Box, { borderStyle: "round", borderColor: "grey", flexDirection: "column", width: width, children: items.slice(startIndex, startIndex + maxVisibleResults).map((item) => {
43
+ const selected = item === items[selectedIndex];
44
+ // 3 is an arbitrary number of some spaces around the item name, and some built-in padding.
45
+ let name = ` ${item}${' '.repeat(width > 0 ? width - 3 - item.length : 0)}`;
46
+ return (_jsx(Box, { children: _jsx(Text, { backgroundColor: selected ? config.theme.color : undefined, bold: selected, children: name }) }, item));
47
+ }) }));
48
48
  };
49
+ //# sourceMappingURL=SelectBox.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SelectBox.js","sourceRoot":"","sources":["../../src/SelectBox.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,KAAK,CAAA;AACzC,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAA;AAErD,MAAM,IAAI,GAAG,GAAG,EAAE,GAAE,CAAC,CAAA;AAErB,MAAM,CAAC,MAAM,SAAS,GAAG,CAAC,EACxB,KAAK,EACL,iBAAiB,GAAG,EAAE,EACtB,QAAQ,GAAG,IAAI,EACf,QAAQ,EACR,KAAK,GAON,EAAE,EAAE;IACH,MAAM,CAAC,aAAa,EAAE,gBAAgB,CAAC,GAAG,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAA;IAC3D,MAAM,CAAC,UAAU,EAAE,aAAa,CAAC,GAAG,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAA;IACrD,MAAM,MAAM,GAAG,SAAS,EAAE,CAAA;IAE1B,MAAM,MAAM,GAAG,CAAC,KAA0B,EAAE,EAAE;QAC5C,IAAI,gBAAgB,GAClB,KAAK,KAAK,UAAU;YAClB,CAAC,CAAC,CAAC,aAAa,GAAG,CAAC,GAAG,KAAK,CAAC,MAAM,CAAC,GAAG,KAAK,CAAC,MAAM;YACnD,CAAC,CAAC,CAAC,aAAa,GAAG,CAAC,CAAC,GAAG,KAAK,CAAC,MAAM,CAAA;QAExC,gBAAgB,CAAC,gBAAgB,CAAC,CAAA;QAClC,aAAa,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,gBAAgB,GAAG,iBAAiB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AC,KAAK,CAAC,UAAU,EAAE,UAAU,GAAG,iBAAiB,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE;YACpE,MAAM,QAAQ,GAAG,IAAI,KAAK,KAAK,CAAC,aAAa,CAAC,CAAA;YAC9C,2FAA2F;YAC3F,IAAI,IAAI,GAAG,IAAI,IAAI,GAAG,GAAG,CAAC,MAAM,CAAC,KAAK,GAAG,CAAC,CAAC,CAAC,CAAC,KAAK,GAAG,CAAC,GAAG,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAA;YAE3E,OAAO,CACL,KAAC,GAAG,cACF,KAAC,IAAI,IACH,eAAe,EAAE,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,EAC1D,IAAI,EAAE,QAAQ,YAEb,IAAI,GACA,IANC,IAAI,CAOR,CACP,CAAA;QACH,CAAC,CAAC,GACE,CACP,CAAA;AACH,CAAC,CAAA"}
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { ReactItem } from './items/types.js';
2
+ import type { ReactItem } from './items/types.js';
3
3
  type ErrorView = {
4
4
  error: Error;
5
5
  };
@@ -8,6 +8,7 @@ type ViewContextType = {
8
8
  view: View;
9
9
  goToView: (view: View) => void;
10
10
  };
11
- declare function ViewProvider({ children }: React.PropsWithChildren): React.JSX.Element;
11
+ declare function ViewProvider({ children }: React.PropsWithChildren): import("react/jsx-runtime").JSX.Element;
12
12
  declare function useView(): ViewContextType;
13
13
  export { ViewProvider, useView };
14
+ //# sourceMappingURL=ViewContext.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ViewContext.d.ts","sourceRoot":"","sources":["../../src/ViewContext.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAA;AAEjD,KAAK,SAAS,GAAG;IACf,KAAK,EAAE,KAAK,CAAA;CACb,CAAA;AAED,KAAK,IAAI,GAAG,QAAQ,GAAG,SAAS,GAAG,SAAS,GAAG,SAAS,CAAA;AAExD,KAAK,eAAe,GAAG;IACrB,IAAI,EAAE,IAAI,CAAA;IACV,QAAQ,EAAE,CAAC,IAAI,EAAE,IAAI,KAAK,IAAI,CAAA;CAC/B,CAAA;AAID,iBAAS,YAAY,CAAC,EAAE,QAAQ,EAAE,EAAE,KAAK,CAAC,iBAAiB,2CAU1D;AAED,iBAAS,OAAO,oBAIf;AAED,OAAO,EAAE,YAAY,EAAE,OAAO,EAAE,CAAA"}
@@ -1,3 +1,4 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
1
2
  import React from 'react';
2
3
  const ViewContext = React.createContext(null);
3
4
  function ViewProvider({ children }) {
@@ -6,7 +7,7 @@ function ViewProvider({ children }) {
6
7
  setView(view);
7
8
  }, []);
8
9
  const value = { view, goToView };
9
- return React.createElement(ViewContext.Provider, { value: value }, children);
10
+ return _jsx(ViewContext.Provider, { value: value, children: children });
10
11
  }
11
12
  function useView() {
12
13
  const context = React.useContext(ViewContext);
@@ -15,3 +16,4 @@ function useView() {
15
16
  return context;
16
17
  }
17
18
  export { ViewProvider, useView };
19
+ //# sourceMappingURL=ViewContext.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ViewContext.js","sourceRoot":"","sources":["../../src/ViewContext.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAczB,MAAM,WAAW,GAAG,KAAK,CAAC,aAAa,CAAyB,IAAI,CAAC,CAAA;AAErE,SAAS,YAAY,CAAC,EAAE,QAAQ,EAA2B;IACzD,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,GAAG,KAAK,CAAC,QAAQ,CAAO,QAAQ,CAAC,CAAA;IAEtD,MAAM,QAAQ,GAAG,KAAK,CAAC,WAAW,CAAC,CAAC,IAAU,EAAE,EAAE;QAChD,OAAO,CAAC,IAAI,CAAC,CAAA;IACf,CAAC,EAAE,EAAE,CAAC,CAAA;IAEN,MAAM,KAAK,GAAG,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAA;IAEhC,OAAO,KAAC,WAAW,CAAC,QAAQ,IAAC,KAAK,EAAE,KAAK,YAAG,QAAQ,GAAwB,CAAA;AAC9E,CAAC;AAED,SAAS,OAAO;IACd,MAAM,OAAO,GAAG,KAAK,CAAC,UAAU,CAAC,WAAW,CAAC,CAAA;IAC7C,IAAI,CAAC,OAAO;QAAE,MAAM,IAAI,KAAK,CAAC,4CAA4C,CAAC,CAAA;IAC3E,OAAO,OAAO,CAAA;AAChB,CAAC;AAED,OAAO,EAAE,YAAY,EAAE,OAAO,EAAE,CAAA"}
package/src/app.d.ts ADDED
@@ -0,0 +1,2 @@
1
+ export default function App(): import("react/jsx-runtime").JSX.Element;
2
+ //# sourceMappingURL=app.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"app.d.ts","sourceRoot":"","sources":["../../src/app.tsx"],"names":[],"mappings":"AASA,MAAM,CAAC,OAAO,UAAU,GAAG,4CAoE1B"}
@@ -1,3 +1,4 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
1
2
  import React from 'react';
2
3
  import { Box, measureElement, Text } from 'ink';
3
4
  import { Search } from './Search.js';
@@ -47,7 +48,6 @@ export default function App() {
47
48
  }
48
49
  }
49
50
  };
50
- return (React.createElement(Box, { flexDirection: "column" },
51
- React.createElement(Box, { flexDirection: "column", borderStyle: "round", borderColor: "grey", width: "100%", minHeight: 20, ref: containerRef }, view === 'search' ? (React.createElement(Search, { key: searchKey, width: containerWidth, choose: choose })) : view === 'loading' ? (React.createElement(Text, null, "\\n\\n\\n\\n\\n\\n\\n\\nLoading...")) : 'error' in view ? (React.createElement(Error, { error: view.error })) : 'actionType' in view && view.actionType === 'Show UI' ? (React.createElement(Component, { item: view })) : null),
52
- React.createElement(Footer, null)));
51
+ return (_jsxs(Box, { flexDirection: "column", children: [_jsx(Box, { flexDirection: "column", borderStyle: "round", borderColor: "grey", width: "100%", minHeight: 20, ref: containerRef, children: view === 'search' ? (_jsx(Search, { width: containerWidth, choose: choose }, searchKey)) : view === 'loading' ? (_jsx(Text, { children: "\\n\\n\\n\\n\\n\\n\\n\\nLoading..." })) : 'error' in view ? (_jsx(Error, { error: view.error })) : 'actionType' in view && view.actionType === 'Show UI' ? (_jsx(Component, { item: view })) : null }), _jsx(Footer, {})] }));
53
52
  }
53
+ //# sourceMappingURL=app.js.map
package/src/app.js.map ADDED
@@ -0,0 +1 @@
1
+ {"version":3,"file":"app.js","sourceRoot":"","sources":["../../src/app.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,GAAG,EAAE,cAAc,EAAE,IAAI,EAAE,MAAM,KAAK,CAAA;AAC/C,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAA;AACpC,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAA;AAE1C,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAA;AAC1C,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAA;AAClC,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAA;AAEpC,MAAM,CAAC,OAAO,UAAU,GAAG;IACzB,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE,GAAG,OAAO,EAAE,CAAA;IAEpC,qEAAqE;IACrE,MAAM,CAAC,SAAS,EAAE,YAAY,CAAC,GAAG,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAA;IAEnD,MAAM,CAAC,cAAc,EAAE,iBAAiB,CAAC,GAAG,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAA;IAC7D,MAAM,YAAY,GAAG,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,CAAA;IAEvC,KAAK,CAAC,SAAS,CAAC,GAAG,EAAE;QACnB,IAAI,CAAC,YAAY,CAAC,OAAO;YAA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AAa,EAAC,QAAQ,EACtB,WAAW,EAAC,OAAO,EACnB,WAAW,EAAC,MAAM,EAClB,KAAK,EAAC,MAAM,EACZ,SAAS,EAAE,EAAE,EACb,GAAG,EAAE,YAAY,YAEhB,IAAI,KAAK,QAAQ,CAAC,CAAC,CAAC,CACnB,KAAC,MAAM,IAAiB,KAAK,EAAE,cAAc,EAAE,MAAM,EAAE,MAAM,IAAhD,SAAS,CAA2C,CAClE,CAAC,CAAC,CAAC,IAAI,KAAK,SAAS,CAAC,CAAC,CAAC,CACvB,KAAC,IAAI,qDAAkC,CACxC,CAAC,CAAC,CAAC,OAAO,IAAI,IAAI,CAAC,CAAC,CAAC,CACpB,KAAC,KAAK,IAAC,KAAK,EAAE,IAAI,CAAC,KAAK,GAAI,CAC7B,CAAC,CAAC,CAAC,YAAY,IAAI,IAAI,IAAI,IAAI,CAAC,UAAU,KAAK,SAAS,CAAC,CAAC,CAAC,CAC1D,KAAC,SAAS,IAAC,IAAI,EAAE,IAAI,GAAI,CAC1B,CAAC,CAAC,CAAC,IAAI,GACJ,EACN,KAAC,MAAM,KAAG,IACN,CACP,CAAA;AACH,CAAC"}
@@ -3,6 +3,7 @@ type ApplicationsCacheContextType = {
3
3
  needsRefresh: boolean;
4
4
  setNeedsRefresh: (needsRefresh: boolean) => void;
5
5
  };
6
- declare function ApplicationsCacheProvider({ children }: React.PropsWithChildren): React.JSX.Element;
6
+ declare function ApplicationsCacheProvider({ children }: React.PropsWithChildren): import("react/jsx-runtime").JSX.Element;
7
7
  declare function useApplicationsCache(): ApplicationsCacheContextType;
8
8
  export { ApplicationsCacheProvider, useApplicationsCache };
9
+ //# sourceMappingURL=ApplicationsCacheContext.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ApplicationsCacheContext.d.ts","sourceRoot":"","sources":["../../../src/apps/ApplicationsCacheContext.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,KAAK,4BAA4B,GAAG;IAClC,YAAY,EAAE,OAAO,CAAA;IACrB,eAAe,EAAE,CAAC,YAAY,EAAE,OAAO,KAAK,IAAI,CAAA;CACjD,CAAA;AAKD,iBAAS,yBAAyB,CAAC,EAAE,QAAQ,EAAE,EAAE,KAAK,CAAC,iBAAiB,2CAUvE;AAED,iBAAS,oBAAoB,iCAO5B;AAED,OAAO,EAAE,yBAAyB,EAAE,oBAAoB,EAAE,CAAA"}
@@ -1,9 +1,10 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
1
2
  import React from 'react';
2
3
  const ApplicationsCache = React.createContext(null);
3
4
  function ApplicationsCacheProvider({ children }) {
4
5
  const [needsRefresh, setNeedsRefresh] = React.useState(false);
5
6
  const value = { needsRefresh, setNeedsRefresh };
6
- return (React.createElement(ApplicationsCache.Provider, { value: value }, children));
7
+ return (_jsx(ApplicationsCache.Provider, { value: value, children: children }));
7
8
  }
8
9
  function useApplicationsCache() {
9
10
  const context = React.useContext(ApplicationsCache);
@@ -12,3 +13,4 @@ function useApplicationsCache() {
12
13
  return context;
13
14
  }
14
15
  export { ApplicationsCacheProvider, useApplicationsCache };
16
+ //# sourceMappingURL=ApplicationsCacheContext.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ApplicationsCacheContext.js","sourceRoot":"","sources":["../../../src/apps/ApplicationsCacheContext.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAOzB,MAAM,iBAAiB,GACrB,KAAK,CAAC,aAAa,CAAsC,IAAI,CAAC,CAAA;AAEhE,SAAS,yBAAyB,CAAC,EAAE,QAAQ,EAA2B;IACtE,MAAM,CAAC,YAAY,EAAE,eAAe,CAAC,GAAG,KAAK,CAAC,QAAQ,CAAU,KAAK,CAAC,CAAA;IAEtE,MAAM,KAAK,GAAG,EAAE,YAAY,EAAE,eAAe,EAAE,CAAA;IAE/C,OAAO,CACL,KAAC,iBAAiB,CAAC,QAAQ,IAAC,KAAK,EAAE,KAAK,YACrC,QAAQ,GACkB,CAC9B,CAAA;AACH,CAAC;AAED,SAAS,oBAAoB;IAC3B,MAAM,OAAO,GAAG,KAAK,CAAC,UAAU,CAAC,iBAAiB,CAAC,CAAA;IACnD,IAAI,CAAC,OAAO;QACV,MAAM,IAAI,KAAK,CACb,sEAAsE,CACvE,CAAA;IACH,OAAO,OAAO,CAAA;AAChB,CAAC;AAED,OAAO,EAAE,yBAAyB,EAAE,oBAAoB,EAAE,CAAA"}
@@ -1 +1,2 @@
1
1
  export declare const RefreshApps: () => null;
2
+ //# sourceMappingURL=RefreshApps.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RefreshApps.d.ts","sourceRoot":"","sources":["../../../src/apps/RefreshApps.tsx"],"names":[],"mappings":"AAMA,eAAO,MAAM,WAAW,YAUvB,CAAA"}
@@ -11,3 +11,4 @@ export const RefreshApps = () => {
11
11
  }, []);
12
12
  return null;
13
13
  };
14
+ //# sourceMappingURL=RefreshApps.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RefreshApps.js","sourceRoot":"","sources":["../../../src/apps/RefreshApps.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAA;AACpE,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAA;AAE3C,gEAAgE;AAEhE,MAAM,CAAC,MAAM,WAAW,GAAG,GAAG,EAAE;IAC9B,MAAM,EAAE,eAAe,EAAE,GAAG,oBAAoB,EAAE,CAAA;IAClD,MAAM,EAAE,QAAQ,EAAE,GAAG,OAAO,EAAE,CAAA;IAE9B,KAAK,CAAC,SAAS,CAAC,GAAG,EAAE;QACnB,eAAe,CAAC,IAAI,CAAC,CAAA;QACrB,QAAQ,CAAC,QAAQ,CAAC,CAAA;IACpB,CAAC,EAAE,EAAE,CAAC,CAAA;IAEN,OAAO,IAAI,CAAA;AACb,CAAC,CAAA"}
@@ -1,11 +1,12 @@
1
1
  import React from 'react';
2
- import { Config } from './types.js';
2
+ import type { Config } from './types.js';
3
3
  type ConfigContextType = Config;
4
4
  declare const Config: React.Context<Config | null>;
5
5
  type Props = {
6
6
  children: React.ReactNode;
7
7
  config: ConfigContextType;
8
8
  };
9
- declare function ConfigProvider({ children, config }: Props): React.JSX.Element;
9
+ declare function ConfigProvider({ children, config }: Props): import("react/jsx-runtime").JSX.Element;
10
10
  declare function useConfig(): Config;
11
11
  export { ConfigProvider, useConfig };
12
+ //# sourceMappingURL=ConfigContext.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ConfigContext.d.ts","sourceRoot":"","sources":["../../../src/config/ConfigContext.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,YAAY,CAAA;AAExC,KAAK,iBAAiB,GAAG,MAAM,CAAA;AAE/B,QAAA,MAAM,MAAM,8BAAsD,CAAA;AAElE,KAAK,KAAK,GAAG;IACX,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;IACzB,MAAM,EAAE,iBAAiB,CAAA;CAC1B,CAAA;AAED,iBAAS,cAAc,CAAC,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAE,KAAK,2CAElD;AAED,iBAAS,SAAS,WAKjB;AAED,OAAO,EAAE,cAAc,EAAE,SAAS,EAAE,CAAA"}
@@ -1,7 +1,8 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
1
2
  import React from 'react';
2
3
  const Config = React.createContext(null);
3
4
  function ConfigProvider({ children, config }) {
4
- return React.createElement(Config.Provider, { value: config }, children);
5
+ return _jsx(Config.Provider, { value: config, children: children });
5
6
  }
6
7
  function useConfig() {
7
8
  const context = React.useContext(Config);
@@ -10,3 +11,4 @@ function useConfig() {
10
11
  return context;
11
12
  }
12
13
  export { ConfigProvider, useConfig };
14
+ //# sourceMappingURL=ConfigContext.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ConfigContext.js","sourceRoot":"","sources":["../../../src/config/ConfigContext.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAKzB,MAAM,MAAM,GAAG,KAAK,CAAC,aAAa,CAA2B,IAAI,CAAC,CAAA;AAOlE,SAAS,cAAc,CAAC,EAAE,QAAQ,EAAE,MAAM,EAAS;IACjD,OAAO,KAAC,MAAM,CAAC,QAAQ,IAAC,KAAK,EAAE,MAAM,YAAG,QAAQ,GAAmB,CAAA;AACrE,CAAC;AAED,SAAS,SAAS;IAChB,MAAM,OAAO,GAAG,KAAK,CAAC,UAAU,CAAC,MAAM,CAAC,CAAA;IACxC,IAAI,CAAC,OAAO;QACV,MAAM,IAAI,KAAK,CAAC,gDAAgD,CAAC,CAAA;IACnE,OAAO,OAAO,CAAA;AAChB,CAAC;AAED,OAAO,EAAE,cAAc,EAAE,SAAS,EAAE,CAAA"}
@@ -0,0 +1,3 @@
1
+ import type { Config, UserConfig } from './types.js';
2
+ export declare const parseAndValidate: (userConfig?: UserConfig) => Config;
3
+ //# sourceMappingURL=parseAndValidate.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"parseAndValidate.d.ts","sourceRoot":"","sources":["../../../src/config/parseAndValidate.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,UAAU,EAAY,MAAM,YAAY,CAAA;AAc9D,eAAO,MAAM,gBAAgB,gBAAiB,UAAU,KAAG,MA6C1D,CAAA"}
@@ -49,3 +49,4 @@ export const parseAndValidate = (userConfig) => {
49
49
  },
50
50
  };
51
51
  };
52
+ //# sourceMappingURL=parseAndValidate.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"parseAndValidate.js","sourceRoot":"","sources":["../../../src/config/parseAndValidate.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAA;AAEjD,MAAM,aAAa,GAAW;IAC5B,WAAW,EAAE,EAAE;IACf,aAAa,EAAE,EA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aAAa,EAAE,UAAU,CAAC,aAAa,IAAI,EAAE;QAC7C,cAAc;QACd,KAAK;QACL,KAAK,EAAE;YACL,KAAK,EAAE,UAAU,CAAC,KAAK,EAAE,KAAK,IAAI,aAAa,CAAC,KAAK,CAAC,KAAK;SAC5D;KACF,CAAA;AACH,CAAC,CAAA"}
@@ -1,4 +1,4 @@
1
- import { BookmarkAction, FunctionAction, Item, ReactAction } from '../items/types.js';
1
+ import type { BookmarkAction, FunctionAction, Item, ReactAction } from '../items/types.js';
2
2
  export type UserItem = {
3
3
  name: string;
4
4
  action: FunctionAction | ReactAction | BookmarkAction;
@@ -24,3 +24,4 @@ export type Config = {
24
24
  items: Item[];
25
25
  };
26
26
  export {};
27
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/config/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,cAAc,EACd,cAAc,EACd,IAAI,EACJ,WAAW,EACZ,MAAM,mBAAmB,CAAA;AAE1B,MAAM,MAAM,QAAQ,GAAG;IACrB,IAAI,EAAE,MAAM,CAAA;IACZ,MAAM,EAAE,cAAc,GAAG,WAAW,GAAG,cAAc,CAAA;CACtD,CAAA;AAED,KAAK,YAAY,GAAG,MAAM,CAAA;AAC1B,KAAK,aAAa,GAAG,MAAM,CAAA;AAC3B,MAAM,MAAM,cAAc,GAAG,MAAM,CAAC,YAAY,EAAE,aAAa,CAAC,GAAG,KAAK,CAAA;AAExE,MAAM,MAAM,KAAK,GAAG;IAClB,KAAK,EACD,OAAO,GACP,KAAK,GACL,OAAO,GACP,QAAQ,GACR,MAAM,GACN,MAAM,GACN,SAAS,GACT,OAAO,GACP,MAAM,GACN,MAAM,GACN,aAAa,GACb,WAAW,GACX,aAAa,GACb,cAAc,GACd,YAAY,GACZ,YAAY,GACZ,eAAe,GACf,aAAa,CAAA;CAClB,CAAA;AAED,MAAM,MAAM,UAAU,GAAG;IACvB,KAAK,CAAC,EAAE,KAAK,CAAA;IACb,cAAc,CAAC,EAAE,cAAc,CAAA;IAC/B,WAAW,CAAC,EAAE,MAAM,EAAE,CAAA;IACtB,aAAa,CAAC,EAAE,MAAM,EAAE,CAAA;IACxB,KAAK,CAAC,EAAE,QAAQ,EAAE,CAAA;CACnB,CAAA;AAED,MAAM,MAAM,MAAM,GAAG;IACnB,KAAK,EAAE,KAAK,CAAA;IACZ,cAAc,EAAE,cAAc,CAAA;IAC9B,WAAW,EAAE,MAAM,EAAE,CAAA;IACrB,aAAa,EAAE,MAAM,EAAE,CAAA;IACvB,KAAK,EAAE,IAAI,EAAE,CAAA;CACd,CAAA"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/config/types.ts"],"names":[],"mappings":""}
@@ -1 +1,2 @@
1
1
  export declare const useExitAppRightAway: () => void;
2
+ //# sourceMappingURL=useExitAppRightAway.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useExitAppRightAway.d.ts","sourceRoot":"","sources":["../../../src/debugging/useExitAppRightAway.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,mBAAmB,YAM/B,CAAA"}
@@ -7,3 +7,4 @@ export const useExitAppRightAway = () => {
7
7
  exit();
8
8
  }, []);
9
9
  };
10
+ //# sourceMappingURL=useExitAppRightAway.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useExitAppRightAway.js","sourceRoot":"","sources":["../../../src/debugging/useExitAppRightAway.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,KAAK,CAAA;AAC5B,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAEjC,4GAA4G;AAC5G,MAAM,CAAC,MAAM,mBAAmB,GAAG,GAAG,EAAE;IACtC,MAAM,EAAE,IAAI,EAAE,GAAG,MAAM,EAAE,CAAA;IAEzB,SAAS,CAAC,GAAG,EAAE;QACb,IAAI,EAAE,CAAA;IACR,CAAC,EAAE,EAAE,CAAC,CAAA;AACR,CAAC,CAAA"}
@@ -3,5 +3,6 @@ type Props = {
3
3
  title: string;
4
4
  children: React.ReactNode;
5
5
  };
6
- export declare const EscapeBackToSearch: ({ title, children }: Props) => React.JSX.Element;
6
+ export declare const EscapeBackToSearch: ({ title, children }: Props) => import("react/jsx-runtime").JSX.Element;
7
7
  export {};
8
+ //# sourceMappingURL=EscapeBackToSearch.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EscapeBackToSearch.d.ts","sourceRoot":"","sources":["../../../src/helpers/EscapeBackToSearch.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAMzB,KAAK,KAAK,GAAG;IACX,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;CAC1B,CAAA;AAED,eAAO,MAAM,kBAAkB,wBAAyB,KAAK,4CA0B5D,CAAA"}