@vertesia/ui 1.5.0-dev.20260725.083715Z → 1.5.0-dev.20260804.124748Z
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/lib/core/hooks/useScrollableSearch.d.ts +1 -1
- package/lib/core/hooks/useScrollableSearch.d.ts.map +1 -1
- package/lib/core/hooks/useScrollableSearch.js +15 -2
- package/lib/core/hooks/useScrollableSearch.js.map +1 -1
- package/lib/env/index.d.ts +4 -0
- package/lib/env/index.d.ts.map +1 -1
- package/lib/env/index.js.map +1 -1
- package/lib/features/agent/chat/AgentRequestInputOverlay.d.ts +1 -1
- package/lib/features/agent/chat/AgentRequestInputOverlay.d.ts.map +1 -1
- package/lib/features/agent/chat/AgentRequestInputOverlay.js +3 -8
- package/lib/features/agent/chat/AgentRequestInputOverlay.js.map +1 -1
- package/lib/features/agent/chat/ModernAgentConversation.d.ts +8 -1
- package/lib/features/agent/chat/ModernAgentConversation.d.ts.map +1 -1
- package/lib/features/agent/chat/ModernAgentConversation.js +53 -17
- package/lib/features/agent/chat/ModernAgentConversation.js.map +1 -1
- package/lib/features/agent/chat/ModernAgentOutput/ActiveWorkstreamsSummary.d.ts +2 -1
- package/lib/features/agent/chat/ModernAgentOutput/ActiveWorkstreamsSummary.d.ts.map +1 -1
- package/lib/features/agent/chat/ModernAgentOutput/ActiveWorkstreamsSummary.js +25 -10
- package/lib/features/agent/chat/ModernAgentOutput/ActiveWorkstreamsSummary.js.map +1 -1
- package/lib/features/agent/chat/ModernAgentOutput/AllMessagesMixed.d.ts.map +1 -1
- package/lib/features/agent/chat/ModernAgentOutput/AllMessagesMixed.js +24 -9
- package/lib/features/agent/chat/ModernAgentOutput/AllMessagesMixed.js.map +1 -1
- package/lib/features/agent/chat/ModernAgentOutput/AttachmentPreview.d.ts.map +1 -1
- package/lib/features/agent/chat/ModernAgentOutput/AttachmentPreview.js +15 -3
- package/lib/features/agent/chat/ModernAgentOutput/AttachmentPreview.js.map +1 -1
- package/lib/features/agent/chat/ModernAgentOutput/Header.js +2 -2
- package/lib/features/agent/chat/ModernAgentOutput/Header.js.map +1 -1
- package/lib/features/agent/chat/ModernAgentOutput/MessageInput.d.ts +2 -1
- package/lib/features/agent/chat/ModernAgentOutput/MessageInput.d.ts.map +1 -1
- package/lib/features/agent/chat/ModernAgentOutput/MessageInput.js +2 -2
- package/lib/features/agent/chat/ModernAgentOutput/MessageInput.js.map +1 -1
- package/lib/features/agent/chat/ModernAgentOutput/MessageItem.d.ts.map +1 -1
- package/lib/features/agent/chat/ModernAgentOutput/MessageItem.js +2 -2
- package/lib/features/agent/chat/ModernAgentOutput/MessageItem.js.map +1 -1
- package/lib/features/agent/chat/ModernAgentOutput/requestInputMessages.d.ts +9 -1
- package/lib/features/agent/chat/ModernAgentOutput/requestInputMessages.d.ts.map +1 -1
- package/lib/features/agent/chat/ModernAgentOutput/requestInputMessages.js +97 -2
- package/lib/features/agent/chat/ModernAgentOutput/requestInputMessages.js.map +1 -1
- package/lib/features/agent/chat/hooks/useAgentStream.d.ts.map +1 -1
- package/lib/features/agent/chat/hooks/useAgentStream.js +12 -3
- package/lib/features/agent/chat/hooks/useAgentStream.js.map +1 -1
- package/lib/features/agent/chat/index.d.ts +1 -1
- package/lib/features/agent/chat/index.d.ts.map +1 -1
- package/lib/features/agent/chat/index.js.map +1 -1
- package/lib/features/facets/PromptsFacetsNav.d.ts +8 -6
- package/lib/features/facets/PromptsFacetsNav.d.ts.map +1 -1
- package/lib/features/facets/PromptsFacetsNav.js +8 -3
- package/lib/features/facets/PromptsFacetsNav.js.map +1 -1
- package/lib/features/store/objects/components/ContentOverview.js +4 -1
- package/lib/features/store/objects/components/ContentOverview.js.map +1 -1
- package/lib/features/store/objects/components/useContentPanelHooks.d.ts +31 -3
- package/lib/features/store/objects/components/useContentPanelHooks.d.ts.map +1 -1
- package/lib/features/store/objects/search/DocumentSearchContext.d.ts +128 -6
- package/lib/features/store/objects/search/DocumentSearchContext.d.ts.map +1 -1
- package/lib/features/store/objects/selection/ObjectsActionContext.d.ts +2 -2
- package/lib/features/store/objects/selection/ObjectsActionContext.d.ts.map +1 -1
- package/lib/features/store/objects/selection/ObjectsActionSpec.d.ts +2 -2
- package/lib/features/store/objects/selection/ObjectsActionSpec.d.ts.map +1 -1
- package/lib/features/store/objects/selection/SelectionActions.d.ts +2 -2
- package/lib/features/store/objects/selection/SelectionActions.d.ts.map +1 -1
- package/lib/features/store/objects/upload/DocumentUploadModal.js.map +1 -1
- package/lib/features/store/types/IntakePolicyEditor.d.ts +2 -2
- package/lib/features/store/types/IntakePolicyEditor.d.ts.map +1 -1
- package/lib/features/store/types/IntakePolicyEditor.js +5 -1
- package/lib/features/store/types/IntakePolicyEditor.js.map +1 -1
- package/lib/features/store/types/IntakePolicyForm.d.ts.map +1 -1
- package/lib/features/store/types/IntakePolicyForm.js +2 -2
- package/lib/features/store/types/IntakePolicyForm.js.map +1 -1
- package/lib/features/store/types/ObjectSchemaEditor.d.ts +2 -2
- package/lib/features/store/types/ObjectSchemaEditor.d.ts.map +1 -1
- package/lib/features/store/types/SelectContentType.d.ts +2 -2
- package/lib/features/store/types/SelectContentType.d.ts.map +1 -1
- package/lib/features/store/types/SelectContentType.js.map +1 -1
- package/lib/features/store/types/SelectContentTypeModal.d.ts +2 -2
- package/lib/features/store/types/SelectContentTypeModal.d.ts.map +1 -1
- package/lib/features/store/types/SelectContentTypeModal.js.map +1 -1
- package/lib/features/store/types/TableLayoutEditor.d.ts +2 -2
- package/lib/features/store/types/TableLayoutEditor.d.ts.map +1 -1
- package/lib/features/store/types/TypeRegistry.d.ts +1267 -6
- package/lib/features/store/types/TypeRegistry.d.ts.map +1 -1
- package/lib/features/store/types/TypeRegistry.js +5 -0
- package/lib/features/store/types/TypeRegistry.js.map +1 -1
- package/lib/features/store/types/intake-policy-editor.logic.d.ts +9 -1
- package/lib/features/store/types/intake-policy-editor.logic.d.ts.map +1 -1
- package/lib/features/store/types/intake-policy-editor.logic.js +9 -1
- package/lib/features/store/types/intake-policy-editor.logic.js.map +1 -1
- package/lib/features/store/types/search/ObjectTypeSearchContext.d.ts +1251 -1
- package/lib/features/store/types/search/ObjectTypeSearchContext.d.ts.map +1 -1
- package/lib/features/store/types/typeCatalogCache.d.ts +2 -2
- package/lib/features/store/types/typeCatalogCache.d.ts.map +1 -1
- package/lib/features/store/types/typeCatalogCache.js +4 -0
- package/lib/features/store/types/typeCatalogCache.js.map +1 -1
- package/lib/features/user/UserInfo.d.ts +118 -7
- package/lib/features/user/UserInfo.d.ts.map +1 -1
- package/lib/i18n/locales/ar.json +2 -1
- package/lib/i18n/locales/de.json +2 -1
- package/lib/i18n/locales/en.json +5 -1
- package/lib/i18n/locales/es.json +2 -1
- package/lib/i18n/locales/fr.json +2 -1
- package/lib/i18n/locales/it.json +2 -1
- package/lib/i18n/locales/ja.json +2 -1
- package/lib/i18n/locales/ko.json +2 -1
- package/lib/i18n/locales/pt.json +2 -1
- package/lib/i18n/locales/ru.json +2 -1
- package/lib/i18n/locales/tr.json +2 -1
- package/lib/i18n/locales/zh-TW.json +2 -1
- package/lib/i18n/locales/zh.json +2 -1
- package/lib/session/UserSession.d.ts +18 -4
- package/lib/session/UserSession.d.ts.map +1 -1
- package/lib/shell/apps/AppInstallationProvider.d.ts +222 -2
- package/lib/shell/apps/AppInstallationProvider.d.ts.map +1 -1
- package/lib/shell/login/InviteAcceptModal.js.map +1 -1
- package/lib/vertesia-ui-core.js +1 -1
- package/lib/vertesia-ui-core.js.map +1 -1
- package/lib/vertesia-ui-features.js +34 -34
- package/lib/vertesia-ui-features.js.map +1 -1
- package/lib/vertesia-ui-i18n.js +13 -13
- package/lib/vertesia-ui-widgets.js +18 -18
- package/lib/vertesia-ui-widgets.js.map +1 -1
- package/lib/widgets/monacoEditor/MonacoEditor.d.ts +7 -1
- package/lib/widgets/monacoEditor/MonacoEditor.d.ts.map +1 -1
- package/lib/widgets/monacoEditor/MonacoEditor.js +62 -6
- package/lib/widgets/monacoEditor/MonacoEditor.js.map +1 -1
- package/package.json +31 -31
- package/src/core/hooks/useScrollableSearch.test.tsx +139 -0
- package/src/core/hooks/useScrollableSearch.tsx +17 -3
- package/src/env/index.ts +2 -0
- package/src/features/agent/chat/AgentChatPlaybackControls.test.tsx +2 -0
- package/src/features/agent/chat/AgentRequestInputOverlay.test.tsx +51 -6
- package/src/features/agent/chat/AgentRequestInputOverlay.tsx +5 -7
- package/src/features/agent/chat/ModernAgentConversation.test.tsx +195 -3
- package/src/features/agent/chat/ModernAgentConversation.tsx +106 -22
- package/src/features/agent/chat/ModernAgentOutput/ActiveWorkstreamsSummary.tsx +75 -20
- package/src/features/agent/chat/ModernAgentOutput/AllMessagesMixed.test.tsx +112 -0
- package/src/features/agent/chat/ModernAgentOutput/AllMessagesMixed.tsx +62 -10
- package/src/features/agent/chat/ModernAgentOutput/AttachmentPreview.tsx +36 -4
- package/src/features/agent/chat/ModernAgentOutput/Header.tsx +2 -2
- package/src/features/agent/chat/ModernAgentOutput/MessageInput.test.tsx +71 -0
- package/src/features/agent/chat/ModernAgentOutput/MessageInput.tsx +3 -1
- package/src/features/agent/chat/ModernAgentOutput/MessageItem.tsx +18 -4
- package/src/features/agent/chat/ModernAgentOutput/requestInputMessages.test.ts +95 -0
- package/src/features/agent/chat/ModernAgentOutput/requestInputMessages.ts +111 -1
- package/src/features/agent/chat/hooks/useAgentStream.test.tsx +57 -0
- package/src/features/agent/chat/hooks/useAgentStream.ts +12 -3
- package/src/features/agent/chat/index.ts +1 -0
- package/src/features/facets/PromptsFacetsNav.tsx +17 -9
- package/src/features/store/objects/components/ContentOverview.tsx +4 -1
- package/src/features/store/objects/selection/ObjectsActionContext.tsx +2 -2
- package/src/features/store/objects/selection/ObjectsActionSpec.ts +2 -2
- package/src/features/store/objects/selection/SelectionActions.tsx +2 -2
- package/src/features/store/objects/upload/DocumentUploadModal.tsx +2 -2
- package/src/features/store/types/IntakePolicyEditor.tsx +12 -4
- package/src/features/store/types/IntakePolicyForm.tsx +25 -0
- package/src/features/store/types/ObjectSchemaEditor.tsx +2 -2
- package/src/features/store/types/SelectContentType.tsx +9 -9
- package/src/features/store/types/SelectContentTypeModal.tsx +5 -5
- package/src/features/store/types/TableLayoutEditor.tsx +2 -2
- package/src/features/store/types/TypeRegistry.ts +8 -3
- package/src/features/store/types/intake-policy-editor.logic.ts +10 -2
- package/src/features/store/types/typeCatalogCache.ts +10 -3
- package/src/i18n/locales/ar.json +2 -1
- package/src/i18n/locales/de.json +2 -1
- package/src/i18n/locales/en.json +5 -1
- package/src/i18n/locales/es.json +2 -1
- package/src/i18n/locales/fr.json +2 -1
- package/src/i18n/locales/it.json +2 -1
- package/src/i18n/locales/ja.json +2 -1
- package/src/i18n/locales/ko.json +2 -1
- package/src/i18n/locales/pt.json +2 -1
- package/src/i18n/locales/ru.json +2 -1
- package/src/i18n/locales/tr.json +2 -1
- package/src/i18n/locales/zh-TW.json +2 -1
- package/src/i18n/locales/zh.json +2 -1
- package/src/shell/login/InviteAcceptModal.tsx +4 -4
- package/src/widgets/markdown/ArtifactEditingSurface.test.tsx +13 -9
- package/src/widgets/monacoEditor/MonacoEditor.tsx +83 -7
|
@@ -1,6 +1,116 @@
|
|
|
1
1
|
import type { AppInstallationWithManifest } from '@vertesia/common';
|
|
2
2
|
import { type ReactNode } from 'react';
|
|
3
|
-
export declare const AppInstallationContext: import("react").Context<
|
|
3
|
+
export declare const AppInstallationContext: import("react").Context<{
|
|
4
|
+
id: string;
|
|
5
|
+
project: string;
|
|
6
|
+
created_at: string;
|
|
7
|
+
updated_at: string;
|
|
8
|
+
manifest: {
|
|
9
|
+
name: string;
|
|
10
|
+
visibility: "vertesia" | "public" | "private";
|
|
11
|
+
title: string;
|
|
12
|
+
description: string;
|
|
13
|
+
publisher: string;
|
|
14
|
+
status: "stable" | "deprecated" | "beta";
|
|
15
|
+
id: string;
|
|
16
|
+
created_at: string;
|
|
17
|
+
updated_at: string;
|
|
18
|
+
icon?: string | undefined;
|
|
19
|
+
color?: string | undefined;
|
|
20
|
+
preview_screenshot?: {
|
|
21
|
+
agent_run_id: string;
|
|
22
|
+
artifact: string;
|
|
23
|
+
} | undefined;
|
|
24
|
+
ui?: {
|
|
25
|
+
src: string;
|
|
26
|
+
isolation?: "css" | "shadow" | undefined;
|
|
27
|
+
css_rebuild?: boolean | undefined;
|
|
28
|
+
navigation?: import("@vertesia/common").AppUINavItem[] | undefined;
|
|
29
|
+
available_in?: ("app_portal" | "composite_app")[] | undefined;
|
|
30
|
+
} | undefined;
|
|
31
|
+
tool_collections?: ({
|
|
32
|
+
type: "mcp";
|
|
33
|
+
id: string;
|
|
34
|
+
name: string;
|
|
35
|
+
description: string;
|
|
36
|
+
namespace: string;
|
|
37
|
+
url: string;
|
|
38
|
+
oauth_app?: string | undefined;
|
|
39
|
+
oauth_config?: {
|
|
40
|
+
name?: string | undefined;
|
|
41
|
+
display_name?: string | undefined;
|
|
42
|
+
grant_type?: "authorization_code" | "client_credentials" | undefined;
|
|
43
|
+
authorization_endpoint?: string | undefined;
|
|
44
|
+
token_endpoint?: string | undefined;
|
|
45
|
+
revocation_endpoint?: string | undefined;
|
|
46
|
+
client_id?: string | undefined;
|
|
47
|
+
use_pkce?: boolean | undefined;
|
|
48
|
+
default_scopes?: string[] | undefined;
|
|
49
|
+
required_at_install?: ("client_id" | "client_secret" | "scopes")[] | undefined;
|
|
50
|
+
} | undefined;
|
|
51
|
+
oauth_provider?: string | undefined;
|
|
52
|
+
oauth_scopes?: string[] | undefined;
|
|
53
|
+
auth?: "other" | "oauth" | undefined;
|
|
54
|
+
} | {
|
|
55
|
+
type: "vertesia_sdk";
|
|
56
|
+
url: string;
|
|
57
|
+
namespace?: string | undefined;
|
|
58
|
+
name?: string | undefined;
|
|
59
|
+
description?: string | undefined;
|
|
60
|
+
auth?: "other" | "oauth" | undefined;
|
|
61
|
+
})[] | undefined;
|
|
62
|
+
oauth_providers?: {
|
|
63
|
+
[x: string]: {
|
|
64
|
+
name?: string | undefined;
|
|
65
|
+
display_name?: string | undefined;
|
|
66
|
+
grant_type?: "authorization_code" | "client_credentials" | undefined;
|
|
67
|
+
authorization_endpoint?: string | undefined;
|
|
68
|
+
token_endpoint?: string | undefined;
|
|
69
|
+
revocation_endpoint?: string | undefined;
|
|
70
|
+
client_id?: string | undefined;
|
|
71
|
+
use_pkce?: boolean | undefined;
|
|
72
|
+
default_scopes?: string[] | undefined;
|
|
73
|
+
required_at_install?: ("client_id" | "client_secret" | "scopes")[] | undefined;
|
|
74
|
+
};
|
|
75
|
+
} | undefined;
|
|
76
|
+
interactions?: string | undefined;
|
|
77
|
+
settings_schema?: import("@llumiverse/common").JSONSchema | undefined;
|
|
78
|
+
capabilities?: ("interactions" | "ui" | "tools" | "types" | "processes" | "views" | "templates" | "dashboards")[] | undefined;
|
|
79
|
+
endpoint?: string | undefined;
|
|
80
|
+
endpoint_overrides?: {
|
|
81
|
+
[x: string]: string;
|
|
82
|
+
} | undefined;
|
|
83
|
+
version?: string | undefined;
|
|
84
|
+
source?: {
|
|
85
|
+
kind: "git";
|
|
86
|
+
git: {
|
|
87
|
+
url: string;
|
|
88
|
+
default_branch?: string | undefined;
|
|
89
|
+
production_branch?: string | undefined;
|
|
90
|
+
development_branch?: string | undefined;
|
|
91
|
+
};
|
|
92
|
+
} | undefined;
|
|
93
|
+
tags?: string[] | undefined;
|
|
94
|
+
access_control?: "none" | "all" | "ui" | undefined;
|
|
95
|
+
account?: string | undefined;
|
|
96
|
+
};
|
|
97
|
+
settings?: {
|
|
98
|
+
[x: string]: unknown;
|
|
99
|
+
} | undefined;
|
|
100
|
+
tool_allowlist?: string[] | undefined;
|
|
101
|
+
oauth_bindings?: {
|
|
102
|
+
collection_id: string;
|
|
103
|
+
oauth_provider_id: string;
|
|
104
|
+
oauth_provider_name: string;
|
|
105
|
+
}[] | undefined;
|
|
106
|
+
provider_bindings?: {
|
|
107
|
+
provider_key: string;
|
|
108
|
+
oauth_provider_id: string;
|
|
109
|
+
oauth_provider_name: string;
|
|
110
|
+
}[] | undefined;
|
|
111
|
+
access_control?: "none" | "all" | "ui" | undefined;
|
|
112
|
+
oauth_collection_ids?: string[] | undefined;
|
|
113
|
+
} | null>;
|
|
4
114
|
export declare function AppInstallationProvider({ installation, children, }: {
|
|
5
115
|
installation: AppInstallationWithManifest;
|
|
6
116
|
children: ReactNode;
|
|
@@ -8,5 +118,115 @@ export declare function AppInstallationProvider({ installation, children, }: {
|
|
|
8
118
|
/**
|
|
9
119
|
* Get the current app installation obejct when called in an app context otheriwse returns null
|
|
10
120
|
*/
|
|
11
|
-
export declare function useAppInstallation():
|
|
121
|
+
export declare function useAppInstallation(): {
|
|
122
|
+
id: string;
|
|
123
|
+
project: string;
|
|
124
|
+
created_at: string;
|
|
125
|
+
updated_at: string;
|
|
126
|
+
manifest: {
|
|
127
|
+
name: string;
|
|
128
|
+
visibility: "vertesia" | "public" | "private";
|
|
129
|
+
title: string;
|
|
130
|
+
description: string;
|
|
131
|
+
publisher: string;
|
|
132
|
+
status: "stable" | "deprecated" | "beta";
|
|
133
|
+
id: string;
|
|
134
|
+
created_at: string;
|
|
135
|
+
updated_at: string;
|
|
136
|
+
icon?: string | undefined;
|
|
137
|
+
color?: string | undefined;
|
|
138
|
+
preview_screenshot?: {
|
|
139
|
+
agent_run_id: string;
|
|
140
|
+
artifact: string;
|
|
141
|
+
} | undefined;
|
|
142
|
+
ui?: {
|
|
143
|
+
src: string;
|
|
144
|
+
isolation?: "css" | "shadow" | undefined;
|
|
145
|
+
css_rebuild?: boolean | undefined;
|
|
146
|
+
navigation?: import("@vertesia/common").AppUINavItem[] | undefined;
|
|
147
|
+
available_in?: ("app_portal" | "composite_app")[] | undefined;
|
|
148
|
+
} | undefined;
|
|
149
|
+
tool_collections?: ({
|
|
150
|
+
type: "mcp";
|
|
151
|
+
id: string;
|
|
152
|
+
name: string;
|
|
153
|
+
description: string;
|
|
154
|
+
namespace: string;
|
|
155
|
+
url: string;
|
|
156
|
+
oauth_app?: string | undefined;
|
|
157
|
+
oauth_config?: {
|
|
158
|
+
name?: string | undefined;
|
|
159
|
+
display_name?: string | undefined;
|
|
160
|
+
grant_type?: "authorization_code" | "client_credentials" | undefined;
|
|
161
|
+
authorization_endpoint?: string | undefined;
|
|
162
|
+
token_endpoint?: string | undefined;
|
|
163
|
+
revocation_endpoint?: string | undefined;
|
|
164
|
+
client_id?: string | undefined;
|
|
165
|
+
use_pkce?: boolean | undefined;
|
|
166
|
+
default_scopes?: string[] | undefined;
|
|
167
|
+
required_at_install?: ("client_id" | "client_secret" | "scopes")[] | undefined;
|
|
168
|
+
} | undefined;
|
|
169
|
+
oauth_provider?: string | undefined;
|
|
170
|
+
oauth_scopes?: string[] | undefined;
|
|
171
|
+
auth?: "other" | "oauth" | undefined;
|
|
172
|
+
} | {
|
|
173
|
+
type: "vertesia_sdk";
|
|
174
|
+
url: string;
|
|
175
|
+
namespace?: string | undefined;
|
|
176
|
+
name?: string | undefined;
|
|
177
|
+
description?: string | undefined;
|
|
178
|
+
auth?: "other" | "oauth" | undefined;
|
|
179
|
+
})[] | undefined;
|
|
180
|
+
oauth_providers?: {
|
|
181
|
+
[x: string]: {
|
|
182
|
+
name?: string | undefined;
|
|
183
|
+
display_name?: string | undefined;
|
|
184
|
+
grant_type?: "authorization_code" | "client_credentials" | undefined;
|
|
185
|
+
authorization_endpoint?: string | undefined;
|
|
186
|
+
token_endpoint?: string | undefined;
|
|
187
|
+
revocation_endpoint?: string | undefined;
|
|
188
|
+
client_id?: string | undefined;
|
|
189
|
+
use_pkce?: boolean | undefined;
|
|
190
|
+
default_scopes?: string[] | undefined;
|
|
191
|
+
required_at_install?: ("client_id" | "client_secret" | "scopes")[] | undefined;
|
|
192
|
+
};
|
|
193
|
+
} | undefined;
|
|
194
|
+
interactions?: string | undefined;
|
|
195
|
+
settings_schema?: import("@llumiverse/common").JSONSchema | undefined;
|
|
196
|
+
capabilities?: ("interactions" | "ui" | "tools" | "types" | "processes" | "views" | "templates" | "dashboards")[] | undefined;
|
|
197
|
+
endpoint?: string | undefined;
|
|
198
|
+
endpoint_overrides?: {
|
|
199
|
+
[x: string]: string;
|
|
200
|
+
} | undefined;
|
|
201
|
+
version?: string | undefined;
|
|
202
|
+
source?: {
|
|
203
|
+
kind: "git";
|
|
204
|
+
git: {
|
|
205
|
+
url: string;
|
|
206
|
+
default_branch?: string | undefined;
|
|
207
|
+
production_branch?: string | undefined;
|
|
208
|
+
development_branch?: string | undefined;
|
|
209
|
+
};
|
|
210
|
+
} | undefined;
|
|
211
|
+
tags?: string[] | undefined;
|
|
212
|
+
access_control?: "none" | "all" | "ui" | undefined;
|
|
213
|
+
account?: string | undefined;
|
|
214
|
+
};
|
|
215
|
+
settings?: {
|
|
216
|
+
[x: string]: unknown;
|
|
217
|
+
} | undefined;
|
|
218
|
+
tool_allowlist?: string[] | undefined;
|
|
219
|
+
oauth_bindings?: {
|
|
220
|
+
collection_id: string;
|
|
221
|
+
oauth_provider_id: string;
|
|
222
|
+
oauth_provider_name: string;
|
|
223
|
+
}[] | undefined;
|
|
224
|
+
provider_bindings?: {
|
|
225
|
+
provider_key: string;
|
|
226
|
+
oauth_provider_id: string;
|
|
227
|
+
oauth_provider_name: string;
|
|
228
|
+
}[] | undefined;
|
|
229
|
+
access_control?: "none" | "all" | "ui" | undefined;
|
|
230
|
+
oauth_collection_ids?: string[] | undefined;
|
|
231
|
+
} | null;
|
|
12
232
|
//# sourceMappingURL=AppInstallationProvider.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AppInstallationProvider.d.ts","sourceRoot":"","sources":["../../../src/shell/apps/AppInstallationProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,kBAAkB,CAAC;AACpE,OAAO,EAAiB,KAAK,SAAS,EAAc,MAAM,OAAO,CAAC;AAElE,eAAO,MAAM,sBAAsB,
|
|
1
|
+
{"version":3,"file":"AppInstallationProvider.d.ts","sourceRoot":"","sources":["../../../src/shell/apps/AppInstallationProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,kBAAkB,CAAC;AACpE,OAAO,EAAiB,KAAK,SAAS,EAAc,MAAM,OAAO,CAAC;AAElE,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;SAA0D,CAAC;AAE9F,wBAAgB,uBAAuB,CAAC,EACpC,YAAY,EACZ,QAAQ,GACX,EAAE;IACC,YAAY,EAAE,2BAA2B,CAAC;IAC1C,QAAQ,EAAE,SAAS,CAAC;CACvB,+BAEA;AAED;;GAEG;AACH,wBAAgB,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;SAEjC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InviteAcceptModal.js","sourceRoot":"","sources":["../../../src/shell/login/InviteAcceptModal.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACzE,OAAO,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AACrD,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AACtD,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAE5C,MAAM,UAAU,iBAAiB;IAC7B,MAAM,OAAO,GAAG,cAAc,EAAE,CAAC;IACjC,MAAM,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC;IAC3B,MAAM,EAAE,CAAC,EAAE,GAAG,gBAAgB,EAAE,CAAC;IACjC,MAAM,CAAC,SAAS,EAAE,YAAY,CAAC,GAAG,QAAQ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IAAI,CAAC,UAAU,CAAC,IAAI,IAAI,MAAM,CAAC,IAAI,CAAC,UAAU,IAAO,CAC5F,IACC,EACN,eAAK,SAAS,EAAC,qBAAqB,aAChC,KAAC,MAAM,IAAC,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,GAAG,EAAE,CAAC,MAAM,CAAC,MAAM,CAAC,YAC5C,CAAC,CAAC,cAAc,CAAC,GACb,EAAC,GAAG,EACb,KAAC,MAAM,IAAC,IAAI,EAAE,IAAI,EAAE,OAAO,EAAC,WAAW,EAAC,OAAO,EAAE,GAAG,EAAE,CAAC,MAAM,CAAC,MAAM,CAAC,YAChE,CAAC,CAAC,cAAc,CAAC,GACb,IACP,KAhBA,MAAM,CAAC,EAAE,CAiBb,CACT,CAAC;IACN,CAAC,CAAC,CAAC;IAEH,OAAO,CACH,wBACI,MAAC,KAAK,IAAC,MAAM,EAAE,SAAS,EAAE,OAAO,EAAE,UAAU,aACzC,KAAC,UAAU,cAAE,CAAC,CAAC,qBAAqB,CAAC,GAAc,EACnD,MAAC,SAAS,eACN,cAAK,SAAS,EAAC,cAAc,2HAGvB,EACL,UAAU,IACH,IACR,GACN,CACT,CAAC;AACN,CAAC"}
|
package/lib/vertesia-ui-core.js
CHANGED
|
@@ -91,5 +91,5 @@ divide-y divide-border
|
|
|
91
91
|
[&>tbody]:divide-y [&>tbody]:divide-border
|
|
92
92
|
[&_th]:text-start [&_th]:px-3 [&_th]:py-3.5 [&_th]:text-sm [&_th]:font-normal [&_th]:text-muted-foreground
|
|
93
93
|
[&_td]:px-3 [&_td]:py-4 [&_td]:text-sm
|
|
94
|
-
`,e),...i,children:n})}function Vi({children:e}){return t(`thead`,{className:`sticky top-0 bg-background z-10 after:absolute after:bottom-0 after:start-0 after:w-full after:h-px after:bg-muted/20`,children:e})}function Hi({columns:e}){return t(`tr`,{className:`hover:bg-muted`,children:Array(e).fill(0).map((e,n)=>t(`td`,{children:t(`div`,{className:`animate-pulse rounded-xs h-5 bg-muted`})},`skeleton-cell-${n}`))})}function Ui({isLoading:e=!1,columns:n,rows:r=3,children:i}){let a=Array.from({length:r},(e,t)=>`skeleton-row-${t}`);return t(`tbody`,{children:e?a.map(e=>t(Hi,{columns:n},e)):i})}function Wi({className:e,children:n,...i}){return t(`tr`,{className:r(`hover:bg-muted hover:cursor-pointer`,e),...i,children:n})}function Gi({scope:e=`col`,children:n,...r}){return t(`th`,{scope:e,...r,children:n})}function Ki({sortDirection:e=`none`,onSort:r,sortIndicator:i,disabled:a=!1,children:o,className:s,scope:c=`col`,...l}){return t(`th`,{scope:c,"aria-sort":e,className:s,...l,children:a?n(`span`,{className:`inline-flex items-center gap-1`,children:[o,i?.(e)]}):n(`button`,{type:`button`,onClick:r,className:`inline-flex items-center gap-1 bg-transparent border-0 p-0 m-0 text-inherit font-inherit cursor-pointer hover:underline focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring rounded-sm`,children:[o,i?.(e)]})})}var qi=class{_value;watchers=[];name;constructor(e,t){this._value=e,this.name=t}get value(){return this._value}set value(e){if(e!==this._value){this._value=e;for(let t of this.watchers)t(e)}}watch(e){return this.watchers.push(e),()=>{this.watchers=this.watchers.filter(t=>t!==e)}}};function Ji(e){let t=N.createContext(void 0);return e.Context=t,t.Provider}var Yi=class{consume=void 0;_current;constructor(e){this._current=e}set current(e){e!==this._current&&(this._current=e,this.consume?.(e))}get current(){return this._current}withConsumer(e){return this.consume=e,e?.(this.current),this}};function Xi(e){let t=e.Context;if(!t)throw Error(`Context not defined for ${e.name}`);return P(t)}function Zi(e){let[t,n]=L(e.value);return F(()=>e.watch(e=>{n(typeof e==`function`?()=>e:e)}),[e]),t}function Qi(e,t){return F(()=>(e.value=t,()=>{e.value=void 0}),[e,t]),t}function $i(e,t){F(()=>e.watch(t),[e,t])}function ea(e){let[t,n]=L(e.current);return F(()=>(e.withConsumer(n),()=>{e.withConsumer(void 0)}),[e]),t}function ta(e,t){F(()=>(e.withConsumer(t),()=>{e.withConsumer(void 0)}),[e,t])}function na(e,t){F(()=>(e.current=t,()=>{e.current=void 0}),[e,t])}var ra=class{compute;_value;watchers=[];unsubscribers=[];name;constructor(e,t,n){this.compute=e,this.name=n,this.recalculate();for(let e of t)this.unsubscribers.push(e.watch(()=>this.recalculate()))}recalculate(){let e=this.compute();if(e!==this._value){this._value=e;for(let t of this.watchers)t(e)}}get value(){return this._value}watch(e){return this.watchers.push(e),()=>{this.watchers=this.watchers.filter(t=>t!==e)}}dispose(){for(let e of this.unsubscribers)e();this.watchers=[]}},ia=class{_value;watchers=[];constructor(e){this._value=e}get value(){return this._value}set value(e){if(e!==this._value){this._value=e;for(let t of this.watchers)t(e)}}addWatcher(e){return this.watchers.push(e),()=>{this.watchers=this.watchers.filter(t=>t!==e)}}};function aa(e){let[t,n]=L(e.value);return F(()=>e.addWatcher(e=>{n(typeof e==`function`?()=>e:e)}),[e]),t}function oa(e,t){let n=I(null);return F(()=>{let r=r=>{n.current&&!n.current.contains(r.target)&&(t?.(r)||e(r))},i=window.setTimeout(()=>{document.addEventListener(`click`,r)},0);return()=>{window.clearTimeout(i),document.removeEventListener(`click`,r)}},[e,t]),n}function sa(){let[e,t]=L(null);return[e,async e=>{if(!navigator?.clipboard)return console.warn(`Clipboard not supported`),!1;try{return await navigator.clipboard.writeText(e),t(e),!0}catch(e){return console.warn(`Copy failed`,e),t(null),!1}}]}function ca(e){F(()=>{let t=window.matchMedia(`(prefers-color-scheme: dark)`),n=t=>e(t.matches);return t.addEventListener(`change`,n),e(t.matches),()=>t.removeEventListener(`change`,n)},[e])}function la(e,t){let[n,r]=L(e);return F(()=>{let n=setTimeout(()=>{r(e)},t);return()=>{clearTimeout(n)}},[e,t]),n}function ua(e,t,n){let r=[],i=new EventSource(e);return i.addEventListener(`message`,e=>{let n=JSON.parse(e.data);n&&(r.push(n),t(r.join(``)))}),i.addEventListener(`close`,e=>{i.close(),n(JSON.parse(e.data))}),()=>{i.close()}}function da(e,t,n){let r=I(t),i=I(n);r.current=t,i.current=n,F(()=>{let t,n=!1,a=e=>r.current(e),o=e=>i.current(e);return typeof e==`function`?e().then(e=>{n||(t=ua(e,a,o))}):t=ua(e,a,o),()=>{n=!0,t?.()}},[e])}function fa(e){return e instanceof Error?e:Error(String(e))}function pa(e,t){Array.isArray(t)&&(t={deps:t});let n=t||{},[r,i]=L(void 0),[a,o]=L(!1),[s,c]=L(n.defaultValue),l=I(e);l.current=e;let u=I(n);u.current=n;let d=ce(()=>{let e=u.current;return e.start?.(),o(!0),l.current().then(t=>{c(t),e.onSuccess?.(t)}).catch(t=>{let n=fa(t);i(n),e.onError?.(n)}).finally(()=>{o(!1),e.end?.()})},[]);return F(()=>{let e=u.current;(!e.condition||e.condition())&&d()},[d,...n.deps??[]]),{data:s,isLoading:a,error:r,setData:c,refetch:d}}function ma(e,t){return!t||Array.isArray(t)?t={deps:[]}:t&&(t.deps=[]),pa(e,t)}function ha(e=!1){let[t,n]=L(e);return{isOn:t,isOff:!t,set:e=>n(e),on:()=>n(!0),off:()=>n(!1),toggle:()=>n(!t)}}function ga(e,t,n={}){let r=I(t);r.current=t;let i=I(n);i.current=n;let a=n.threshold||1;F(()=>{let t=e.current,n=new IntersectionObserver(e=>{let t=e[0].isIntersecting;i.current.leave?t||r.current(e[0]):t&&r.current(e[0])},{threshold:a});return t&&n.observe(t),()=>{t&&n.unobserve(t)}},[e,a,...n.deps??[]])}function _a(){let e=I(!0);return F(t=>(t&&e.current&&t(),e.current=!1,()=>{e.current=!0}),[]),e.current}const va=typeof window<`u`?ue:F;function ya(e,t=[]){let n=e.pageSize||50,[r,i]=L(null),[a,o]=L(e.payload),[s,c]=L(null),[l,u]=L([]),[d,f]=L(null),[p,m]=L(!1),h=I(0),g=e=>{i(null),u([]),f(null),o(e)},_=()=>{d!==null&&i(d)};return F(()=>{h.current+=1;let t=h.current;m(!0),e.search(a,r,n).then(e=>{t===h.current&&(u(r===null?e.result:t=>[...t,...e.result]),f(e.nextPage),c(null))}).catch(e=>{t===h.current&&c(e)}).finally(()=>{t===h.current&&m(!1)})},[...t,a,e.search,r,n]),ga(e.nextPageTrigger,()=>{!p&&d&&_()},{threshold:.1,deps:[d,p]}),{search:g,refresh:()=>g(a),searchMore:_,result:l,page:r,hasMore:d!==null,error:s,isSearching:p}}function ba(e,t=[]){return ya({...e,async search(t,n,r){let i=n??0,a=i*r,o=await e.search(t,a,r);return{result:o,nextPage:o.length===0?null:i+1}}},t)}var xa=class{state;constructor(e){this.state=e}get(){return this.state[0]}set(e){this.state[1](e)}};function Sa(e){return new xa(L(e))}function Ca(...e){return ge(i(e))}function wa(e){return typeof e==`object`&&!!e&&`message`in e}function Ta(e,t=`An error occurred`){return e instanceof Error?e.message:typeof e==`string`?e:wa(e)&&typeof e.message==`string`?e.message:t}function Ea(e,t){let n=e.selectionStart,r=e.selectionEnd,i=e.value,a=`${i.slice(0,n)}\n${i.slice(r)}`;t?.(a),requestAnimationFrame(()=>{e.selectionStart=e.selectionEnd=n+1})}export{ur as AnimateChangeInHeight,je as Avatar,zt as Badge,tn as Breadcrumbs,J as Button,dn as Card,hn as CardContent,mn as CardDescription,gn as CardFooter,fn as CardHeader,pn as CardTitle,Ne as Center,_n as Checkbox,vn as Collapsible,bn as CollapsibleContent,yn as CollapsibleTrigger,et as ComboBox,Ln as Command,Rn as CommandDialog,Vn as CommandEmpty,Y as CommandGroup,zn as CommandInput,X as CommandItem,Bn as CommandList,Hn as CommandSeparator,Un as CommandShortcut,ra as ComputedProperty,Xr as ConfirmModal,Ct as CopyButton,qe as DOMPopup,_r as DateCombobox,Yr as DefaultBox,ri as DeleteModal,kn as Dialog,Mn as DialogClose,Pn as DialogContent,Fn as DialogDescription,Nn as DialogOverlay,jn as DialogPortal,In as DialogTitle,An as DialogTrigger,lt as Divider,Ht as DotBadge,kt as DropZone,sr as Dropdown,Gn as DropdownMenu,Zn as DropdownMenuCheckboxItem,Jn as DropdownMenuContent,Yn as DropdownMenuGroup,Xn as DropdownMenuItem,er as DropdownMenuLabel,Kn as DropdownMenuPortal,Qn as DropdownMenuRadioGroup,$n as DropdownMenuRadioItem,tr as DropdownMenuSeparator,nr as DropdownMenuShortcut,rr as DropdownMenuSub,ar as DropdownMenuSubContent,ir as DropdownMenuSubTrigger,qn as DropdownMenuTrigger,wt as EmptyCollection,Gr as ErrorBox,Ot as FileUploadInput,Nr as FilterBar,Mr as FilterBtn,Pr as FilterClear,Ir as FilterOperator,jr as FilterProvider,It as FormItem,Lr as Heading,Kr as InfoBox,Sr as Input,Ut as InputList,Ur as Label,Vr as LanguageSwitcher,Wt as Link,cr as MenuGroup,lr as MenuItem,Gt as MenuList,Wr as MessageBox,Tn as Modal,Dn as ModalBody,wn as ModalContextProvider,On as ModalFooter,En as ModalTitle,ki as ModeOption,Ai as ModeToggle,Yt as NumberInput,Xe as OptionAdapter,Xt as Overlay,ii as Panel,Z as Popover,pr as PopoverAnchor,mr as PopoverClose,$ as PopoverContent,dr as PopoverContext,Q as PopoverTrigger,Je as Popup,We as PopupController,en as Portal,ut as PortalContainerContext,ft as PortalContainerProvider,qi as Property,si as RadioGroup,oi as RadioGroupAdapter,ai as RadioGroupItem,di as ResizableHandle,ui as ResizablePanel,ci as ResizablePanelGroup,Hi as RowSkeleton,Rr as SelectBox,Mi as SelectList,yr as SelectionCombobox,fi as Separator,ia as SharedState,xa as SharedValue,Pi as SidePanel,ct as SimpleCombobox,pi as Slider,Yi as Slot,Ki as SortableTableHeaderCell,Li as Spinner,br as StringListCombobox,Ze as StringOptionAdapter,Qe as StringOptionAdapterWithCreate,qt as Styles,Jr as SuccessBox,Me as SvgAvatar,hi as Switch,Ui as TBody,Vi as THead,Wi as TR,Bi as Table,Gi as TableHeaderCell,_i as Tabs,vi as TabsBar,Si as TabsContent,bi as TabsList,yi as TabsPanel,xi as TabsTrigger,zi as TagsInput,wi as Text,Cr as TextCombobox,Ti as Textarea,Di as ThemeProvider,Ei as ThemeProviderContext,Qr as ToastContext,ni as ToastProvider,ht as Tooltip,_t as TooltipContent,mt as TooltipProvider,gt as TooltipTrigger,vt as VTooltip,qr as WarningBox,St as buttonVariants,Ca as cn,ze as computePosition,Ji as createCompositeStateProvider,Ta as errorMessage,$e as getDefaultComboBoxLayout,Ea as insertNewlineAtCursor,Lt as onActivateKey,oa as useClickOutside,it as useComboboxCtrl,Xi as useCompositeState,sa as useCopyToClipboard,ca as useDarkMode,la as useDebounce,ba as useDefaultScrollableSearch,na as useDefineSlot,Nt as useDropZone,da as useEventSource,pa as useFetch,ma as useFetchOnce,ha as useFlag,Zi as useGetCompositeStateProperty,ga as useIntersectionObserver,_a as useIsFirstRendering,Cn as useIsInModal,hr as usePopoverContext,Ke as usePopupController,pt as usePortalContainer,va as useSafeLayoutEffect,ya as useScrollableSearch,Qi as useSetCompositeStateProperty,Sa as useSharedValue,ea as useSlot,Oi as useTheme,Zr as useToast,$i as useWatchCompositeStateProperty,aa as useWatchSharedState,ta as useWatchSlot};
|
|
94
|
+
`,e),...i,children:n})}function Vi({children:e}){return t(`thead`,{className:`sticky top-0 bg-background z-10 after:absolute after:bottom-0 after:start-0 after:w-full after:h-px after:bg-muted/20`,children:e})}function Hi({columns:e}){return t(`tr`,{className:`hover:bg-muted`,children:Array(e).fill(0).map((e,n)=>t(`td`,{children:t(`div`,{className:`animate-pulse rounded-xs h-5 bg-muted`})},`skeleton-cell-${n}`))})}function Ui({isLoading:e=!1,columns:n,rows:r=3,children:i}){let a=Array.from({length:r},(e,t)=>`skeleton-row-${t}`);return t(`tbody`,{children:e?a.map(e=>t(Hi,{columns:n},e)):i})}function Wi({className:e,children:n,...i}){return t(`tr`,{className:r(`hover:bg-muted hover:cursor-pointer`,e),...i,children:n})}function Gi({scope:e=`col`,children:n,...r}){return t(`th`,{scope:e,...r,children:n})}function Ki({sortDirection:e=`none`,onSort:r,sortIndicator:i,disabled:a=!1,children:o,className:s,scope:c=`col`,...l}){return t(`th`,{scope:c,"aria-sort":e,className:s,...l,children:a?n(`span`,{className:`inline-flex items-center gap-1`,children:[o,i?.(e)]}):n(`button`,{type:`button`,onClick:r,className:`inline-flex items-center gap-1 bg-transparent border-0 p-0 m-0 text-inherit font-inherit cursor-pointer hover:underline focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring rounded-sm`,children:[o,i?.(e)]})})}var qi=class{_value;watchers=[];name;constructor(e,t){this._value=e,this.name=t}get value(){return this._value}set value(e){if(e!==this._value){this._value=e;for(let t of this.watchers)t(e)}}watch(e){return this.watchers.push(e),()=>{this.watchers=this.watchers.filter(t=>t!==e)}}};function Ji(e){let t=N.createContext(void 0);return e.Context=t,t.Provider}var Yi=class{consume=void 0;_current;constructor(e){this._current=e}set current(e){e!==this._current&&(this._current=e,this.consume?.(e))}get current(){return this._current}withConsumer(e){return this.consume=e,e?.(this.current),this}};function Xi(e){let t=e.Context;if(!t)throw Error(`Context not defined for ${e.name}`);return P(t)}function Zi(e){let[t,n]=L(e.value);return F(()=>e.watch(e=>{n(typeof e==`function`?()=>e:e)}),[e]),t}function Qi(e,t){return F(()=>(e.value=t,()=>{e.value=void 0}),[e,t]),t}function $i(e,t){F(()=>e.watch(t),[e,t])}function ea(e){let[t,n]=L(e.current);return F(()=>(e.withConsumer(n),()=>{e.withConsumer(void 0)}),[e]),t}function ta(e,t){F(()=>(e.withConsumer(t),()=>{e.withConsumer(void 0)}),[e,t])}function na(e,t){F(()=>(e.current=t,()=>{e.current=void 0}),[e,t])}var ra=class{compute;_value;watchers=[];unsubscribers=[];name;constructor(e,t,n){this.compute=e,this.name=n,this.recalculate();for(let e of t)this.unsubscribers.push(e.watch(()=>this.recalculate()))}recalculate(){let e=this.compute();if(e!==this._value){this._value=e;for(let t of this.watchers)t(e)}}get value(){return this._value}watch(e){return this.watchers.push(e),()=>{this.watchers=this.watchers.filter(t=>t!==e)}}dispose(){for(let e of this.unsubscribers)e();this.watchers=[]}},ia=class{_value;watchers=[];constructor(e){this._value=e}get value(){return this._value}set value(e){if(e!==this._value){this._value=e;for(let t of this.watchers)t(e)}}addWatcher(e){return this.watchers.push(e),()=>{this.watchers=this.watchers.filter(t=>t!==e)}}};function aa(e){let[t,n]=L(e.value);return F(()=>e.addWatcher(e=>{n(typeof e==`function`?()=>e:e)}),[e]),t}function oa(e,t){let n=I(null);return F(()=>{let r=r=>{n.current&&!n.current.contains(r.target)&&(t?.(r)||e(r))},i=window.setTimeout(()=>{document.addEventListener(`click`,r)},0);return()=>{window.clearTimeout(i),document.removeEventListener(`click`,r)}},[e,t]),n}function sa(){let[e,t]=L(null);return[e,async e=>{if(!navigator?.clipboard)return console.warn(`Clipboard not supported`),!1;try{return await navigator.clipboard.writeText(e),t(e),!0}catch(e){return console.warn(`Copy failed`,e),t(null),!1}}]}function ca(e){F(()=>{let t=window.matchMedia(`(prefers-color-scheme: dark)`),n=t=>e(t.matches);return t.addEventListener(`change`,n),e(t.matches),()=>t.removeEventListener(`change`,n)},[e])}function la(e,t){let[n,r]=L(e);return F(()=>{let n=setTimeout(()=>{r(e)},t);return()=>{clearTimeout(n)}},[e,t]),n}function ua(e,t,n){let r=[],i=new EventSource(e);return i.addEventListener(`message`,e=>{let n=JSON.parse(e.data);n&&(r.push(n),t(r.join(``)))}),i.addEventListener(`close`,e=>{i.close(),n(JSON.parse(e.data))}),()=>{i.close()}}function da(e,t,n){let r=I(t),i=I(n);r.current=t,i.current=n,F(()=>{let t,n=!1,a=e=>r.current(e),o=e=>i.current(e);return typeof e==`function`?e().then(e=>{n||(t=ua(e,a,o))}):t=ua(e,a,o),()=>{n=!0,t?.()}},[e])}function fa(e){return e instanceof Error?e:Error(String(e))}function pa(e,t){Array.isArray(t)&&(t={deps:t});let n=t||{},[r,i]=L(void 0),[a,o]=L(!1),[s,c]=L(n.defaultValue),l=I(e);l.current=e;let u=I(n);u.current=n;let d=ce(()=>{let e=u.current;return e.start?.(),o(!0),l.current().then(t=>{c(t),e.onSuccess?.(t)}).catch(t=>{let n=fa(t);i(n),e.onError?.(n)}).finally(()=>{o(!1),e.end?.()})},[]);return F(()=>{let e=u.current;(!e.condition||e.condition())&&d()},[d,...n.deps??[]]),{data:s,isLoading:a,error:r,setData:c,refetch:d}}function ma(e,t){return!t||Array.isArray(t)?t={deps:[]}:t&&(t.deps=[]),pa(e,t)}function ha(e=!1){let[t,n]=L(e);return{isOn:t,isOff:!t,set:e=>n(e),on:()=>n(!0),off:()=>n(!1),toggle:()=>n(!t)}}function ga(e,t,n={}){let r=I(t);r.current=t;let i=I(n);i.current=n;let a=n.threshold||1;F(()=>{let t=e.current,n=new IntersectionObserver(e=>{let t=e[0].isIntersecting;i.current.leave?t||r.current(e[0]):t&&r.current(e[0])},{threshold:a});return t&&n.observe(t),()=>{t&&n.unobserve(t)}},[e,a,...n.deps??[]])}function _a(){let e=I(!0);return F(t=>(t&&e.current&&t(),e.current=!1,()=>{e.current=!0}),[]),e.current}const va=typeof window<`u`?ue:F;function ya(e,t=[]){let n=e.pageSize||50,[r,i]=L(null),[a,o]=L(e.payload),[s,c]=L(null),[l,u]=L([]),[d,f]=L(null),[p,m]=L(!1),[h,g]=L(0),_=I(0),v=I(e.search);v.current=e.search;let y=e=>{i(null),u([]),f(null),o(e),g(e=>e+1)},b=()=>{d!==null&&i(d)};return F(()=>{_.current+=1;let e=_.current;m(!0),v.current(a,r,n).then(t=>{e===_.current&&(u(r===null?t.result:e=>[...e,...t.result]),f(t.nextPage),c(null))}).catch(t=>{e===_.current&&c(t)}).finally(()=>{e===_.current&&m(!1)})},[...t,a,h,r,n]),ga(e.nextPageTrigger,()=>{!p&&d&&b()},{threshold:.1,deps:[d,p]}),{search:y,refresh:()=>y(a),searchMore:b,result:l,page:r,hasMore:d!==null,error:s,isSearching:p}}function ba(e,t=[]){return ya({...e,async search(t,n,r){let i=n??0,a=i*r,o=await e.search(t,a,r);return{result:o,nextPage:o.length===0?null:i+1}}},t)}var xa=class{state;constructor(e){this.state=e}get(){return this.state[0]}set(e){this.state[1](e)}};function Sa(e){return new xa(L(e))}function Ca(...e){return ge(i(e))}function wa(e){return typeof e==`object`&&!!e&&`message`in e}function Ta(e,t=`An error occurred`){return e instanceof Error?e.message:typeof e==`string`?e:wa(e)&&typeof e.message==`string`?e.message:t}function Ea(e,t){let n=e.selectionStart,r=e.selectionEnd,i=e.value,a=`${i.slice(0,n)}\n${i.slice(r)}`;t?.(a),requestAnimationFrame(()=>{e.selectionStart=e.selectionEnd=n+1})}export{ur as AnimateChangeInHeight,je as Avatar,zt as Badge,tn as Breadcrumbs,J as Button,dn as Card,hn as CardContent,mn as CardDescription,gn as CardFooter,fn as CardHeader,pn as CardTitle,Ne as Center,_n as Checkbox,vn as Collapsible,bn as CollapsibleContent,yn as CollapsibleTrigger,et as ComboBox,Ln as Command,Rn as CommandDialog,Vn as CommandEmpty,Y as CommandGroup,zn as CommandInput,X as CommandItem,Bn as CommandList,Hn as CommandSeparator,Un as CommandShortcut,ra as ComputedProperty,Xr as ConfirmModal,Ct as CopyButton,qe as DOMPopup,_r as DateCombobox,Yr as DefaultBox,ri as DeleteModal,kn as Dialog,Mn as DialogClose,Pn as DialogContent,Fn as DialogDescription,Nn as DialogOverlay,jn as DialogPortal,In as DialogTitle,An as DialogTrigger,lt as Divider,Ht as DotBadge,kt as DropZone,sr as Dropdown,Gn as DropdownMenu,Zn as DropdownMenuCheckboxItem,Jn as DropdownMenuContent,Yn as DropdownMenuGroup,Xn as DropdownMenuItem,er as DropdownMenuLabel,Kn as DropdownMenuPortal,Qn as DropdownMenuRadioGroup,$n as DropdownMenuRadioItem,tr as DropdownMenuSeparator,nr as DropdownMenuShortcut,rr as DropdownMenuSub,ar as DropdownMenuSubContent,ir as DropdownMenuSubTrigger,qn as DropdownMenuTrigger,wt as EmptyCollection,Gr as ErrorBox,Ot as FileUploadInput,Nr as FilterBar,Mr as FilterBtn,Pr as FilterClear,Ir as FilterOperator,jr as FilterProvider,It as FormItem,Lr as Heading,Kr as InfoBox,Sr as Input,Ut as InputList,Ur as Label,Vr as LanguageSwitcher,Wt as Link,cr as MenuGroup,lr as MenuItem,Gt as MenuList,Wr as MessageBox,Tn as Modal,Dn as ModalBody,wn as ModalContextProvider,On as ModalFooter,En as ModalTitle,ki as ModeOption,Ai as ModeToggle,Yt as NumberInput,Xe as OptionAdapter,Xt as Overlay,ii as Panel,Z as Popover,pr as PopoverAnchor,mr as PopoverClose,$ as PopoverContent,dr as PopoverContext,Q as PopoverTrigger,Je as Popup,We as PopupController,en as Portal,ut as PortalContainerContext,ft as PortalContainerProvider,qi as Property,si as RadioGroup,oi as RadioGroupAdapter,ai as RadioGroupItem,di as ResizableHandle,ui as ResizablePanel,ci as ResizablePanelGroup,Hi as RowSkeleton,Rr as SelectBox,Mi as SelectList,yr as SelectionCombobox,fi as Separator,ia as SharedState,xa as SharedValue,Pi as SidePanel,ct as SimpleCombobox,pi as Slider,Yi as Slot,Ki as SortableTableHeaderCell,Li as Spinner,br as StringListCombobox,Ze as StringOptionAdapter,Qe as StringOptionAdapterWithCreate,qt as Styles,Jr as SuccessBox,Me as SvgAvatar,hi as Switch,Ui as TBody,Vi as THead,Wi as TR,Bi as Table,Gi as TableHeaderCell,_i as Tabs,vi as TabsBar,Si as TabsContent,bi as TabsList,yi as TabsPanel,xi as TabsTrigger,zi as TagsInput,wi as Text,Cr as TextCombobox,Ti as Textarea,Di as ThemeProvider,Ei as ThemeProviderContext,Qr as ToastContext,ni as ToastProvider,ht as Tooltip,_t as TooltipContent,mt as TooltipProvider,gt as TooltipTrigger,vt as VTooltip,qr as WarningBox,St as buttonVariants,Ca as cn,ze as computePosition,Ji as createCompositeStateProvider,Ta as errorMessage,$e as getDefaultComboBoxLayout,Ea as insertNewlineAtCursor,Lt as onActivateKey,oa as useClickOutside,it as useComboboxCtrl,Xi as useCompositeState,sa as useCopyToClipboard,ca as useDarkMode,la as useDebounce,ba as useDefaultScrollableSearch,na as useDefineSlot,Nt as useDropZone,da as useEventSource,pa as useFetch,ma as useFetchOnce,ha as useFlag,Zi as useGetCompositeStateProperty,ga as useIntersectionObserver,_a as useIsFirstRendering,Cn as useIsInModal,hr as usePopoverContext,Ke as usePopupController,pt as usePortalContainer,va as useSafeLayoutEffect,ya as useScrollableSearch,Qi as useSetCompositeStateProperty,Sa as useSharedValue,ea as useSlot,Oi as useTheme,Zr as useToast,$i as useWatchCompositeStateProperty,aa as useWatchSharedState,ta as useWatchSlot};
|
|
95
95
|
//# sourceMappingURL=vertesia-ui-core.js.map
|