@wippy-fe/types-global-proxy 0.0.20 → 0.0.22

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 (2) hide show
  1. package/index.d.ts +136 -137
  2. package/package.json +2 -2
package/index.d.ts CHANGED
@@ -1,92 +1,41 @@
1
- import * as nanoevents from 'nanoevents';
2
1
  import { AxiosDefaults, AxiosInstance } from 'axios';
3
2
  import { ConfirmationOptions } from 'primevue/confirmationoptions';
4
3
  import { ToastMessageOptions } from 'primevue/toast';
4
+ import * as nanoevents from 'nanoevents';
5
5
  import * as tailwindcss_types_config from 'tailwindcss/types/config';
6
6
 
7
- var chat = {
8
- emptyState: {
9
- title: "No chat session selected",
10
- description: "Please select a session from the dropdown above or start a new conversation.",
11
- goToHome: "Go to Home Page",
12
- loadingAgents: "Loading agents...",
13
- selectAgent: "Select Agent",
14
- startChat: "Start Chat",
15
- startChatError: "Failed to start chat",
16
- noAgents: "No agents available. Please contact your administrator.",
17
- dropFiles: "Drop files here to upload"
18
- }
19
- };
20
- var customPage = {
21
- loading: {
22
- title: "Loading page content..."
23
- },
24
- error: {
25
- title: "Failed to load page content"
26
- }
27
- };
28
- var home = {
29
- loading: "Application is Loading",
30
- error: {
31
- title: "Error Loading Application"
32
- },
33
- noHomePage: {
34
- title: "No Home Page Detected",
35
- message: "Probably backend configuration is malformed"
36
- }
37
- };
38
- var app = {
39
- title: "Wippy App",
40
- appName: "Wippy",
41
- icon: "wippy:logo"
42
- };
43
- var login = {
44
- error: {
45
- title: "Session Token Expired",
46
- description: "Your session has expired or is no longer valid. Please close this window and log in again to continue."
47
- }
48
- };
49
- var logout = {
50
- title: "Logout",
51
- description: "Logging out..."
52
- };
53
- var keeper = {
54
- controls: {
55
- newChat: "New Chat",
56
- searchAgents: "Search agents...",
57
- undo: "Undo",
58
- redo: "Redo",
59
- download: "Registry To File System",
60
- upload: "File System To Registry",
61
- codeAssistant: "Wippy Code Assistant",
62
- syncControls: "Sync Controls",
63
- confirmUpload: {
64
- title: "Confirm Upload",
65
- message: "Do you wish to upload file system changes to registry? This will overwrite current state",
66
- cancel: "Cancel",
67
- upload: "Upload",
68
- cancelled: {
69
- title: "Upload cancelled",
70
- message: "The upload operation was cancelled"
71
- }
72
- }
73
- },
74
- version: {
75
- label: "Version:",
76
- tooltip: "Version {{version}}"
77
- }
78
- };
79
- var textRS = {
80
- chat: chat,
81
- customPage: customPage,
82
- home: home,
83
- app: app,
84
- login: login,
85
- logout: logout,
86
- keeper: keeper
87
- };
88
-
89
- type I18NTextTypes = typeof textRS;
7
+ declare namespace PageApi {
8
+ interface Page {
9
+ icon: string;
10
+ id: string;
11
+ name: string;
12
+ title: string;
13
+ internal?: string;
14
+ order: number;
15
+ placement?: 'default' | 'bottom';
16
+ hidden?: boolean;
17
+ badge?: string | number;
18
+ badge_icon?: string;
19
+ group?: string;
20
+ group_order?: number;
21
+ group_icon?: string;
22
+ group_placement?: 'default' | 'bottom';
23
+ content_version?: string;
24
+ /** The content of the page artifact, which can be HTML, Markdown, or JSON with wippy specific package.json info */
25
+ content_type?: 'text/html' | 'text/markdown' | 'application/json';
26
+ /** Per-page config overrides — merged into AppConfig before CSS injection. Populated from registry entry config_overrides. */
27
+ configOverrides?: AppConfigOverrides;
28
+ }
29
+ interface PagesResponse {
30
+ count: number;
31
+ pages: Page[];
32
+ success: boolean;
33
+ }
34
+ interface PageContentResponse {
35
+ content: string;
36
+ success: boolean;
37
+ }
38
+ }
90
39
 
91
40
  /**
92
41
  * All API route templates, grouped by domain.
@@ -171,6 +120,90 @@ type ApiRoutesOverride = {
171
120
  };
172
121
  };
173
122
 
123
+ var chat = {
124
+ emptyState: {
125
+ title: "No chat session selected",
126
+ description: "Please select a session from the dropdown above or start a new conversation.",
127
+ goToHome: "Go to Home Page",
128
+ loadingAgents: "Loading agents...",
129
+ selectAgent: "Select Agent",
130
+ startChat: "Start Chat",
131
+ startChatError: "Failed to start chat",
132
+ noAgents: "No agents available. Please contact your administrator.",
133
+ dropFiles: "Drop files here to upload"
134
+ }
135
+ };
136
+ var customPage = {
137
+ loading: {
138
+ title: "Loading page content..."
139
+ },
140
+ error: {
141
+ title: "Failed to load page content"
142
+ }
143
+ };
144
+ var home = {
145
+ loading: "Application is Loading",
146
+ error: {
147
+ title: "Error Loading Application"
148
+ },
149
+ noHomePage: {
150
+ title: "No Home Page Detected",
151
+ message: "Probably backend configuration is malformed"
152
+ }
153
+ };
154
+ var app = {
155
+ title: "Wippy App",
156
+ appName: "Wippy",
157
+ icon: "wippy:logo"
158
+ };
159
+ var login = {
160
+ error: {
161
+ title: "Session Token Expired",
162
+ description: "Your session has expired or is no longer valid. Please close this window and log in again to continue."
163
+ }
164
+ };
165
+ var logout = {
166
+ title: "Logout",
167
+ description: "Logging out..."
168
+ };
169
+ var keeper = {
170
+ controls: {
171
+ newChat: "New Chat",
172
+ searchAgents: "Search agents...",
173
+ undo: "Undo",
174
+ redo: "Redo",
175
+ download: "Registry To File System",
176
+ upload: "File System To Registry",
177
+ codeAssistant: "Wippy Code Assistant",
178
+ syncControls: "Sync Controls",
179
+ confirmUpload: {
180
+ title: "Confirm Upload",
181
+ message: "Do you wish to upload file system changes to registry? This will overwrite current state",
182
+ cancel: "Cancel",
183
+ upload: "Upload",
184
+ cancelled: {
185
+ title: "Upload cancelled",
186
+ message: "The upload operation was cancelled"
187
+ }
188
+ }
189
+ },
190
+ version: {
191
+ label: "Version:",
192
+ tooltip: "Version {{version}}"
193
+ }
194
+ };
195
+ var textRS = {
196
+ chat: chat,
197
+ customPage: customPage,
198
+ home: home,
199
+ app: app,
200
+ login: login,
201
+ logout: logout,
202
+ keeper: keeper
203
+ };
204
+
205
+ type I18NTextTypes = typeof textRS;
206
+
174
207
  interface IconDef {
175
208
  body: string;
176
209
  width: number;
@@ -282,37 +315,25 @@ interface AppConfigOverrides {
282
315
  apiRoutes?: ApiRoutesOverride;
283
316
  }
284
317
 
285
- declare namespace PageApi {
286
- interface Page {
287
- icon: string;
288
- id: string;
289
- name: string;
290
- title: string;
291
- internal?: string;
292
- order: number;
293
- placement?: 'default' | 'bottom';
294
- hidden?: boolean;
295
- badge?: string | number;
296
- badge_icon?: string;
297
- group?: string;
298
- group_order?: number;
299
- group_icon?: string;
300
- group_placement?: 'default' | 'bottom';
301
- content_version?: string;
302
- /** The content of the page artifact, which can be HTML, Markdown, or JSON with wippy specific package.json info */
303
- content_type?: 'text/html' | 'text/markdown' | 'application/json';
304
- /** Per-page config overrides — merged into AppConfig before CSS injection. Populated from registry entry config_overrides. */
305
- configOverrides?: AppConfigOverrides;
306
- }
307
- interface PagesResponse {
308
- count: number;
309
- pages: Page[];
310
- success: boolean;
311
- }
312
- interface PageContentResponse {
313
- content: string;
314
- success: boolean;
315
- }
318
+ interface ProxyConfig {
319
+ enabled: boolean;
320
+ injections: {
321
+ css: {
322
+ themeConfig: boolean;
323
+ iframe: boolean;
324
+ primevue: boolean;
325
+ markdown: boolean;
326
+ customCss: boolean;
327
+ customVariabled: boolean;
328
+ };
329
+ tailwindConfig: boolean;
330
+ resizeObserver: boolean;
331
+ preventLinkClicks: boolean;
332
+ iconifyIcons: boolean;
333
+ refreshWhenVisible: boolean;
334
+ historyPolyfill: boolean;
335
+ errorCapture: boolean;
336
+ };
316
337
  }
317
338
 
318
339
  declare namespace UploadApi {
@@ -878,28 +899,6 @@ interface ProxyApiInstance {
878
899
  loadWebComponent: (componentId: string, tagName?: string) => Promise<void>;
879
900
  }
880
901
 
881
- interface ProxyConfig {
882
- enabled: boolean;
883
- injections: {
884
- css: {
885
- fonts: boolean;
886
- themeConfig: boolean;
887
- iframe: boolean;
888
- primevue: boolean;
889
- markdown: boolean;
890
- customCss: boolean;
891
- customVariabled: boolean;
892
- };
893
- tailwindConfig: boolean;
894
- resizeObserver: boolean;
895
- preventLinkClicks: boolean;
896
- iconifyIcons: boolean;
897
- refreshWhenVisible: boolean;
898
- historyPolyfill: boolean;
899
- errorCapture: boolean;
900
- };
901
- }
902
-
903
902
  declare const GLOBAL_CONFIG_VAR: "__WIPPY_APP_CONFIG__";
904
903
  declare const GLOBAL_PROXY_CONFIG_VAR: "__WIPPY_PROXY_CONFIG__";
905
904
  declare const GLOBAL_CONFIG_OVERRIDES_VAR: "__WIPPY_CONFIG_OVERRIDES__";
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@wippy-fe/types-global-proxy",
3
- "version": "0.0.20",
3
+ "version": "0.0.22",
4
4
  "description": "Global type declarations for Wippy iframe proxy (window.getWippyApi, $W, etc.)",
5
5
  "license": "UNLICENSED",
6
6
  "types": "index.d.ts"
7
- }
7
+ }