@qikbar/qikbar 0.0.25 → 0.1.0

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 (89) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +92 -0
  3. package/dist/ai/agent.d.ts +42 -0
  4. package/dist/ai/byok.d.ts +29 -0
  5. package/dist/ai/index.d.ts +8 -0
  6. package/dist/ai/providers.d.ts +82 -0
  7. package/dist/ai/sse.d.ts +9 -0
  8. package/dist/ai.js +36 -0
  9. package/dist/ai.js.map +7 -0
  10. package/dist/chunks/bar-D5CSPT3U.js +2031 -0
  11. package/dist/chunks/bar-D5CSPT3U.js.map +7 -0
  12. package/dist/chunks/chunk-2ADXL7KQ.js +358 -0
  13. package/dist/chunks/chunk-2ADXL7KQ.js.map +7 -0
  14. package/dist/chunks/chunk-6TC6G2C5.js +107 -0
  15. package/dist/chunks/chunk-6TC6G2C5.js.map +7 -0
  16. package/dist/chunks/chunk-HBBSETRF.js +153 -0
  17. package/dist/chunks/chunk-HBBSETRF.js.map +7 -0
  18. package/dist/chunks/chunk-I77YSUJN.js +104 -0
  19. package/dist/chunks/chunk-I77YSUJN.js.map +7 -0
  20. package/dist/chunks/chunk-IJ3WUM3T.js +544 -0
  21. package/dist/chunks/chunk-IJ3WUM3T.js.map +7 -0
  22. package/dist/chunks/chunk-MPTP2EWW.js +8 -0
  23. package/dist/chunks/chunk-MPTP2EWW.js.map +7 -0
  24. package/dist/chunks/chunk-N4Y2Z6YD.js +69 -0
  25. package/dist/chunks/chunk-N4Y2Z6YD.js.map +7 -0
  26. package/dist/chunks/chunk-PQEHV3D4.js +124 -0
  27. package/dist/chunks/chunk-PQEHV3D4.js.map +7 -0
  28. package/dist/chunks/chunk-VXTYD56F.js +453 -0
  29. package/dist/chunks/chunk-VXTYD56F.js.map +7 -0
  30. package/dist/chunks/chunk-YCVJQ7U3.js +52 -0
  31. package/dist/chunks/chunk-YCVJQ7U3.js.map +7 -0
  32. package/dist/core/define.d.ts +40 -0
  33. package/dist/core/frecency.d.ts +16 -0
  34. package/dist/core/hotkeys.d.ts +39 -0
  35. package/dist/core/lazy.d.ts +48 -0
  36. package/dist/core/search.d.ts +42 -0
  37. package/dist/core/storage.d.ts +5 -0
  38. package/dist/core/types.d.ts +601 -0
  39. package/dist/extensions/index.d.ts +30 -0
  40. package/dist/extensions/math.d.ts +14 -0
  41. package/dist/extensions.js +476 -0
  42. package/dist/extensions.js.map +7 -0
  43. package/dist/index.d.ts +27 -0
  44. package/dist/index.js +67 -0
  45. package/dist/index.js.map +7 -0
  46. package/dist/qikbar.global.js +259 -0
  47. package/dist/qikbar.global.js.map +7 -0
  48. package/dist/react/index.d.ts +66 -0
  49. package/dist/react.js +119 -0
  50. package/dist/react.js.map +7 -0
  51. package/dist/server/index.d.ts +47 -0
  52. package/dist/server.js +93 -0
  53. package/dist/server.js.map +7 -0
  54. package/dist/styles.css +222 -0
  55. package/dist/theme.d.ts +5 -0
  56. package/dist/theme.js +20 -0
  57. package/dist/theme.js.map +7 -0
  58. package/dist/ui/bar.d.ts +252 -0
  59. package/dist/ui/dom.d.ts +21 -0
  60. package/dist/ui/icons.d.ts +88 -0
  61. package/dist/ui/markdown.d.ts +8 -0
  62. package/dist/ui/nav.d.ts +8 -0
  63. package/dist/ui/styles.d.ts +6 -0
  64. package/dist/ui/themes.d.ts +27 -0
  65. package/dist/ui/views.d.ts +148 -0
  66. package/dist/utils.d.ts +10 -0
  67. package/dist/utils.js +50 -0
  68. package/dist/utils.js.map +7 -0
  69. package/package.json +88 -43
  70. package/dist/qikbar.es.js +0 -8748
  71. package/dist/qikbar.umd.js +0 -113
  72. package/dist/types/boot.d.ts +0 -72
  73. package/dist/types/index.d.ts +0 -1
  74. package/dist/types/init.d.ts +0 -2
  75. package/dist/types/main.d.ts +0 -4
  76. package/dist/types/shared/AsyncRoot.d.ts +0 -5
  77. package/dist/types/shared/CommandFooter.d.ts +0 -5
  78. package/dist/types/shared/Crumbs.d.ts +0 -6
  79. package/dist/types/shared/Details.d.ts +0 -3
  80. package/dist/types/shared/ErrorBoundary.d.ts +0 -15
  81. package/dist/types/shared/Icon.d.ts +0 -4
  82. package/dist/types/shared/List.d.ts +0 -30
  83. package/dist/types/shared/Qikbar.d.ts +0 -5
  84. package/dist/types/shared/Root.d.ts +0 -4
  85. package/dist/types/shared/Search.d.ts +0 -1
  86. package/dist/types/shared/commandContext.d.ts +0 -8
  87. package/dist/types/shared/useDebounce.d.ts +0 -1
  88. package/dist/types/utils/liquid.d.ts +0 -4
  89. package/dist/types/vite-env.d.ts +0 -1
@@ -1,72 +0,0 @@
1
- import type { iconName } from './shared/Icon';
2
- declare type RootCommandType = 'STATIC' | 'DYNAMIC';
3
- declare type CommandType = 'link' | 'action' | 'search' | 'menu';
4
- declare type RootCommand = {
5
- id: string;
6
- path: string;
7
- Element: any;
8
- type: RootCommandType;
9
- placeholderText?: string;
10
- categories?: Category[];
11
- dynamicOptions?: {
12
- rootData?: string;
13
- asyncUrl?: string;
14
- transform?: any;
15
- clientSideFilter?: boolean;
16
- includeHeaders?: boolean;
17
- };
18
- };
19
- declare type Category = {
20
- category?: string;
21
- children?: Command[];
22
- };
23
- declare type Command = {
24
- id: string;
25
- title?: string;
26
- description?: string;
27
- type?: CommandType;
28
- href?: string;
29
- to?: string;
30
- fields?: any;
31
- actions?: any;
32
- iconName?: iconName;
33
- };
34
- declare type RouterFunc = (arg0: any) => void;
35
- declare type CommandState = {
36
- id: string;
37
- commands: RootCommand[];
38
- router: RouterFunc | null;
39
- headers: any;
40
- theme: string;
41
- setId: (theme: any) => void;
42
- setTheme: (theme: any) => void;
43
- addRouter: (routerFunc: RouterFunc) => void;
44
- addHeaders: (headers: any) => void;
45
- addCommand: (command: RootCommand) => void;
46
- addCommands: (commands: RootCommand[]) => void;
47
- updateCommand: (command: RootCommand) => void;
48
- removeCommand: (command: RootCommand) => void;
49
- };
50
- export declare const useCommandsStore: import("zustand").UseBoundStore<import("zustand").StoreApi<CommandState>>;
51
- export declare function DemoBar({ path, commands, theme }: {
52
- path: any;
53
- commands: any;
54
- theme: any;
55
- }): JSX.Element;
56
- export declare const fetchSite: (id: any) => Promise<void>;
57
- declare function Qikbar({ id }: {
58
- id: string;
59
- }): {
60
- id: string;
61
- boot: ({ elementId }: {
62
- elementId: string;
63
- }) => void;
64
- setTheme: (theme: string) => void;
65
- reloadSite: () => Promise<void>;
66
- addCommand: (command: RootCommand) => void;
67
- updateCommand: (command: RootCommand) => void;
68
- removeCommand: (command: RootCommand) => void;
69
- addRouter: (routerFunc: RouterFunc) => void;
70
- addHeaders: (headers: any) => void;
71
- };
72
- export default Qikbar;
@@ -1 +0,0 @@
1
- declare module 'qikbar';
@@ -1,2 +0,0 @@
1
- declare function init(id: string): any;
2
- export default init;
@@ -1,4 +0,0 @@
1
- import init from './init';
2
- import Qikbar from './shared/Qikbar';
3
- import { DemoBar } from './boot';
4
- export { init, Qikbar, DemoBar };
@@ -1,5 +0,0 @@
1
- export default function AsyncRoot({ path, placeholderText, dynamicOptions, }: {
2
- placeholderText?: string;
3
- path: string;
4
- dynamicOptions?: any;
5
- }): JSX.Element;
@@ -1,5 +0,0 @@
1
- export default function CommandFooter({ showAdminEdit, setShowAdminEdit, enabledAdminEdit, }: {
2
- showAdminEdit: any;
3
- setShowAdminEdit: any;
4
- enabledAdminEdit: any;
5
- }): JSX.Element;
@@ -1,6 +0,0 @@
1
- export default function Crumbs({ crumbs, }: {
2
- crumbs: {
3
- to: 'string';
4
- title: 'string';
5
- }[];
6
- }): JSX.Element;
@@ -1,3 +0,0 @@
1
- export default function Details({ fields }: {
2
- fields: any;
3
- }): JSX.Element;
@@ -1,15 +0,0 @@
1
- import React, { Component, ErrorInfo, ReactNode } from 'react';
2
- interface Props {
3
- children?: ReactNode;
4
- }
5
- interface State {
6
- hasError: boolean;
7
- }
8
- declare class ErrorBoundary extends Component<Props, State> {
9
- state: State;
10
- static getDerivedStateFromError(_: Error): State;
11
- componentDidCatch(error: Error, errorInfo: ErrorInfo): void;
12
- render(): string | number | boolean | React.ReactFragment | JSX.Element;
13
- }
14
- export default ErrorBoundary;
15
- export declare function RouterErrorBoundary(): JSX.Element;
@@ -1,4 +0,0 @@
1
- export declare type iconName = 'CalendarDaysIcon' | 'CalendarIcon' | 'FireIcon' | 'MegaphoneIcon' | 'WrenchIcon' | 'WrenchScrewdriverIcon' | 'ShareIcon' | 'ShoppingBagIcon' | 'ShoppingCartIcon' | 'StarIcon' | 'StopCircleIcon' | 'StopIcon' | 'LockClosedIcon' | 'LinkIcon' | 'UserGroupIcon' | 'BellAlertIcon';
2
- export default function Icons({ iconName }: {
3
- iconName: iconName;
4
- }): JSX.Element;
@@ -1,30 +0,0 @@
1
- import { ReactNode } from 'react';
2
- export declare function Flex({ children }: {
3
- children?: ReactNode;
4
- }): JSX.Element;
5
- export declare function List({ children }: {
6
- children?: ReactNode;
7
- }): JSX.Element;
8
- export declare function CategoryList({ item: { name, children, Icon } }: {
9
- item: {
10
- name: any;
11
- children: any;
12
- Icon: any;
13
- };
14
- }): JSX.Element;
15
- export declare function ListItem({ item: { iconName, title, to, description, href, route, action, children, tag, }, }: {
16
- item: {
17
- iconName: any;
18
- title: any;
19
- to: any;
20
- description: any;
21
- href: any;
22
- route: any;
23
- action: any;
24
- children: any;
25
- tag: any;
26
- };
27
- }): JSX.Element;
28
- export declare function Placeholder({ placeholder }: {
29
- placeholder: any;
30
- }): any;
@@ -1,5 +0,0 @@
1
- export default function Qikbar({ elementId, router, siteId, }: {
2
- elementId?: string;
3
- router?: any;
4
- siteId: string;
5
- }): JSX.Element;
@@ -1,4 +0,0 @@
1
- export default function Root({ categories: commands, placeholderText, }: {
2
- categories?: any;
3
- placeholderText?: string;
4
- }): JSX.Element;
@@ -1 +0,0 @@
1
- export default function Search(): JSX.Element;
@@ -1,8 +0,0 @@
1
- import React from 'react';
2
- declare const CommandContext: React.Context<any>;
3
- export default CommandContext;
4
- export declare function CommandProvider({ demo, wrapperClass, defaultOpen, }: {
5
- demo?: boolean;
6
- wrapperClass?: string;
7
- defaultOpen?: boolean;
8
- }): JSX.Element;
@@ -1 +0,0 @@
1
- export default function useDebounce<T>(value: T, delay: number): T;
@@ -1,4 +0,0 @@
1
- import { Liquid } from 'liquidjs';
2
- export declare const engine: Liquid;
3
- export declare function useTransform(data: any, transformObject: any): any;
4
- export default function transform(data: any, transformObject: any): any;
@@ -1 +0,0 @@
1
- /// <reference types="vite/client" />