wu-framework 1.1.15 → 1.1.17

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 (88) hide show
  1. package/README.md +52 -20
  2. package/dist/wu-framework.cjs.js +1 -1
  3. package/dist/wu-framework.cjs.js.map +1 -1
  4. package/dist/wu-framework.dev.js +15511 -15146
  5. package/dist/wu-framework.dev.js.map +1 -1
  6. package/dist/wu-framework.esm.js +1 -1
  7. package/dist/wu-framework.esm.js.map +1 -1
  8. package/dist/wu-framework.umd.js +1 -1
  9. package/dist/wu-framework.umd.js.map +1 -1
  10. package/package.json +166 -161
  11. package/src/adapters/angular/ai.js +30 -30
  12. package/src/adapters/angular/index.d.ts +154 -154
  13. package/src/adapters/angular/index.js +932 -932
  14. package/src/adapters/angular.d.ts +3 -3
  15. package/src/adapters/angular.js +3 -3
  16. package/src/adapters/index.js +168 -168
  17. package/src/adapters/lit/ai.js +20 -20
  18. package/src/adapters/lit/index.d.ts +120 -120
  19. package/src/adapters/lit/index.js +721 -721
  20. package/src/adapters/lit.d.ts +3 -3
  21. package/src/adapters/lit.js +3 -3
  22. package/src/adapters/preact/ai.js +33 -33
  23. package/src/adapters/preact/index.d.ts +108 -108
  24. package/src/adapters/preact/index.js +661 -661
  25. package/src/adapters/preact.d.ts +3 -3
  26. package/src/adapters/preact.js +3 -3
  27. package/src/adapters/react/index.js +48 -54
  28. package/src/adapters/react.d.ts +3 -3
  29. package/src/adapters/react.js +3 -3
  30. package/src/adapters/shared.js +64 -64
  31. package/src/adapters/solid/ai.js +32 -32
  32. package/src/adapters/solid/index.d.ts +101 -101
  33. package/src/adapters/solid/index.js +586 -586
  34. package/src/adapters/solid.d.ts +3 -3
  35. package/src/adapters/solid.js +3 -3
  36. package/src/adapters/svelte/ai.js +31 -31
  37. package/src/adapters/svelte/index.d.ts +166 -166
  38. package/src/adapters/svelte/index.js +798 -798
  39. package/src/adapters/svelte.d.ts +3 -3
  40. package/src/adapters/svelte.js +3 -3
  41. package/src/adapters/vanilla/ai.js +30 -30
  42. package/src/adapters/vanilla/index.d.ts +179 -179
  43. package/src/adapters/vanilla/index.js +785 -785
  44. package/src/adapters/vanilla.d.ts +3 -3
  45. package/src/adapters/vanilla.js +3 -3
  46. package/src/adapters/vue/ai.js +52 -52
  47. package/src/adapters/vue/index.d.ts +299 -299
  48. package/src/adapters/vue/index.js +610 -610
  49. package/src/adapters/vue.d.ts +3 -3
  50. package/src/adapters/vue.js +3 -3
  51. package/src/ai/wu-ai-actions.js +261 -261
  52. package/src/ai/wu-ai-agent.js +546 -546
  53. package/src/ai/wu-ai-browser-primitives.js +354 -354
  54. package/src/ai/wu-ai-browser.js +380 -380
  55. package/src/ai/wu-ai-context.js +332 -332
  56. package/src/ai/wu-ai-conversation.js +613 -613
  57. package/src/ai/wu-ai-orchestrate.js +1021 -1021
  58. package/src/ai/wu-ai-permissions.js +381 -381
  59. package/src/ai/wu-ai-provider.js +700 -700
  60. package/src/ai/wu-ai-schema.js +225 -225
  61. package/src/ai/wu-ai-triggers.js +396 -396
  62. package/src/ai/wu-ai.js +804 -804
  63. package/src/core/wu-app.js +236 -236
  64. package/src/core/wu-cache.js +498 -477
  65. package/src/core/wu-core.js +1412 -1398
  66. package/src/core/wu-error-boundary.js +396 -382
  67. package/src/core/wu-event-bus.js +390 -348
  68. package/src/core/wu-hooks.js +350 -350
  69. package/src/core/wu-html-parser.js +199 -190
  70. package/src/core/wu-iframe-sandbox.js +328 -328
  71. package/src/core/wu-loader.js +385 -273
  72. package/src/core/wu-logger.js +142 -134
  73. package/src/core/wu-manifest.js +532 -509
  74. package/src/core/wu-mcp-bridge.js +432 -432
  75. package/src/core/wu-overrides.js +510 -510
  76. package/src/core/wu-performance.js +228 -228
  77. package/src/core/wu-plugin.js +401 -348
  78. package/src/core/wu-prefetch.js +414 -414
  79. package/src/core/wu-proxy-sandbox.js +477 -476
  80. package/src/core/wu-sandbox.js +779 -779
  81. package/src/core/wu-script-executor.js +161 -113
  82. package/src/core/wu-snapshot-sandbox.js +227 -227
  83. package/src/core/wu-store.js +13 -3
  84. package/src/core/wu-strategies.js +256 -256
  85. package/src/core/wu-style-bridge.js +477 -477
  86. package/src/index.d.ts +317 -0
  87. package/src/index.js +234 -224
  88. package/src/utils/dependency-resolver.js +327 -327
@@ -1,299 +1,299 @@
1
- /**
2
- * Wu Framework Vue Adapter - TypeScript Definitions
3
- */
4
-
5
- import { App, Component, Ref, DefineComponent } from 'vue';
6
-
7
- // ============================================================================
8
- // Core Types (shared with React adapter)
9
- // ============================================================================
10
-
11
- export interface WuInstance {
12
- init: (config: WuConfig) => Promise<void>;
13
- mount: (appName: string, container: string) => Promise<void>;
14
- unmount: (appName: string) => Promise<void>;
15
- define: (appName: string, lifecycle: WuLifecycle) => void;
16
- app: (name: string, config: WuAppConfig) => WuApp;
17
- eventBus: WuEventBus;
18
- store: WuStore;
19
- }
20
-
21
- export interface WuConfig {
22
- apps: Array<{
23
- name: string;
24
- url: string;
25
- strategy?: 'lazy' | 'eager' | 'preload' | 'idle';
26
- }>;
27
- }
28
-
29
- export interface WuLifecycle {
30
- mount: (container: HTMLElement) => void | Promise<void>;
31
- unmount: (container?: HTMLElement) => void | Promise<void>;
32
- }
33
-
34
- export interface WuAppConfig {
35
- url: string;
36
- container: string;
37
- autoInit?: boolean;
38
- }
39
-
40
- export interface WuApp {
41
- mount: (container?: string) => Promise<void>;
42
- unmount: () => Promise<void>;
43
- remount: () => Promise<void>;
44
- reload: () => Promise<void>;
45
- destroy: () => Promise<void>;
46
- isMounted: boolean;
47
- info: WuAppInfo;
48
- }
49
-
50
- export interface WuAppInfo {
51
- name: string;
52
- url: string;
53
- mounted: boolean;
54
- status: 'stable' | 'refreshed' | 'unstable';
55
- }
56
-
57
- export interface WuEventBus {
58
- emit: (event: string, data?: any, options?: EmitOptions) => void;
59
- on: (event: string, callback: EventCallback) => () => void;
60
- once: (event: string, callback: EventCallback) => () => void;
61
- off: (event: string, callback?: EventCallback) => void;
62
- }
63
-
64
- export interface WuStore {
65
- get: (path?: string) => any;
66
- set: (path: string, value: any) => number;
67
- on: (pattern: string, callback: StoreCallback) => () => void;
68
- batch: (updates: Record<string, any>) => number[];
69
- clear: () => void;
70
- }
71
-
72
- export type EventCallback = (event: WuEvent) => void;
73
- export type StoreCallback = (change: { path: string; value: any }) => void;
74
-
75
- export interface WuEvent {
76
- name: string;
77
- data: any;
78
- timestamp: number;
79
- source?: string;
80
- }
81
-
82
- export interface EmitOptions {
83
- appName?: string;
84
- timestamp?: number;
85
- meta?: Record<string, any>;
86
- }
87
-
88
- // ============================================================================
89
- // Vue Adapter Types
90
- // ============================================================================
91
-
92
- export interface VueRegisterOptions {
93
- /**
94
- * Function to configure the Vue app (install plugins, add global components, etc.)
95
- * @param app - Vue app instance
96
- */
97
- setup?: (app: App) => void;
98
- /** Initial props for the component */
99
- props?: Record<string, any>;
100
- /** Callback after mounting */
101
- onMount?: (container: HTMLElement, app: App) => void;
102
- /** Callback before unmounting */
103
- onUnmount?: (container: HTMLElement, app: App) => void;
104
- /** Allow standalone execution (default: true) */
105
- standalone?: boolean;
106
- /** Selector for standalone mode (default: '#app') */
107
- standaloneContainer?: string;
108
- }
109
-
110
- /**
111
- * Register a Vue component as a microfrontend
112
- *
113
- * @example
114
- * // Basic
115
- * wuVue.register('my-app', App);
116
- *
117
- * @example
118
- * // With plugins
119
- * wuVue.register('my-app', App, {
120
- * setup: (app) => {
121
- * app.use(createPinia());
122
- * app.use(router);
123
- * }
124
- * });
125
- */
126
- export function register(
127
- appName: string,
128
- RootComponent: Component,
129
- options?: VueRegisterOptions
130
- ): Promise<boolean>;
131
-
132
- // ============================================================================
133
- // WuSlot Component Types
134
- // ============================================================================
135
-
136
- export interface WuSlotProps {
137
- /** Display name for the microfrontend */
138
- name: string;
139
- /** URL where the microfrontend is hosted */
140
- url: string;
141
- /** App name from wu.json (defaults to name if not provided) */
142
- appName?: string;
143
- /** Custom fallback text while loading */
144
- fallbackText?: string;
145
- }
146
-
147
- export interface WuSlotEmits {
148
- /** Emitted when microfrontend loads successfully */
149
- (e: 'load', info: { name: string; url: string }): void;
150
- /** Emitted when loading fails */
151
- (e: 'error', error: Error): void;
152
- /** Emitted when microfrontend mounts */
153
- (e: 'mount', info: { name: string; container: HTMLElement }): void;
154
- /** Emitted when microfrontend unmounts */
155
- (e: 'unmount', info: { name: string }): void;
156
- }
157
-
158
- /**
159
- * Vue component for loading microfrontends
160
- *
161
- * @example
162
- * <WuSlot name="my-app" url="http://localhost:3001" @load="onLoad" />
163
- */
164
- export const WuSlot: DefineComponent<WuSlotProps, {}, {}, {}, {}, {}, {}, WuSlotEmits>;
165
-
166
- // ============================================================================
167
- // Composables Types
168
- // ============================================================================
169
-
170
- export interface UseWuEventsReturn {
171
- /** Emit an event to the event bus */
172
- emit: (event: string, data?: any, options?: EmitOptions) => void;
173
- /** Subscribe to an event */
174
- on: (event: string, callback: EventCallback) => () => void;
175
- /** Subscribe to an event once */
176
- once: (event: string, callback: EventCallback) => () => void;
177
- /** Unsubscribe from an event */
178
- off: (event: string, callback?: EventCallback) => void;
179
- /** Clean up all subscriptions (call in onUnmounted) */
180
- cleanup: () => void;
181
- }
182
-
183
- /**
184
- * Composable for using Wu Framework EventBus
185
- *
186
- * @example
187
- * const { emit, on, cleanup } = useWuEvents();
188
- *
189
- * onMounted(() => {
190
- * on('user:login', handleLogin);
191
- * });
192
- *
193
- * onUnmounted(() => {
194
- * cleanup();
195
- * });
196
- */
197
- export function useWuEvents(): UseWuEventsReturn;
198
-
199
- export interface UseWuStoreReturn<T = any> {
200
- /** Reactive state value */
201
- state: Ref<T | null>;
202
- /** Set a value in the store */
203
- setState: (path: string, value: any) => void;
204
- /** Get a value from the store */
205
- getState: (path?: string) => any;
206
- /** Clean up subscription (call in onUnmounted) */
207
- cleanup: () => void;
208
- }
209
-
210
- /**
211
- * Composable for using Wu Framework Store
212
- *
213
- * @example
214
- * const { state, setState, getState, cleanup } = useWuStore('user');
215
- *
216
- * // state.value is reactive
217
- * watchEffect(() => {
218
- * console.log('User changed:', state.value);
219
- * });
220
- *
221
- * onUnmounted(() => {
222
- * cleanup();
223
- * });
224
- */
225
- export function useWuStore<T = any>(namespace?: string): UseWuStoreReturn<T>;
226
-
227
- // ============================================================================
228
- // Plugin Types
229
- // ============================================================================
230
-
231
- export interface WuVuePluginOptions {
232
- // Reserved for future options
233
- }
234
-
235
- /**
236
- * Vue plugin to install Wu Framework globally
237
- *
238
- * @example
239
- * import { createApp } from 'vue';
240
- * import { wuVuePlugin } from 'wu-framework/adapters/vue';
241
- *
242
- * const app = createApp(App);
243
- * app.use(wuVuePlugin);
244
- *
245
- * // Now you can use:
246
- * // - <WuSlot /> component globally
247
- * // - this.$wu in Options API
248
- * // - inject('wu') in Composition API
249
- */
250
- export const wuVuePlugin: {
251
- install: (app: App, options?: WuVuePluginOptions) => void;
252
- };
253
-
254
- // ============================================================================
255
- // Utility Functions
256
- // ============================================================================
257
-
258
- /**
259
- * Get the Wu Framework instance
260
- */
261
- export function getWuInstance(): WuInstance | null;
262
-
263
- /**
264
- * Wait for Wu Framework to be available
265
- * @param timeout - Maximum time to wait in ms (default: 5000)
266
- */
267
- export function waitForWu(timeout?: number): Promise<WuInstance>;
268
-
269
- // ============================================================================
270
- // Main Export
271
- // ============================================================================
272
-
273
- export interface WuVueAdapter {
274
- register: typeof register;
275
- WuSlot: typeof WuSlot;
276
- useWuEvents: typeof useWuEvents;
277
- useWuStore: typeof useWuStore;
278
- wuVuePlugin: typeof wuVuePlugin;
279
- getWuInstance: typeof getWuInstance;
280
- waitForWu: typeof waitForWu;
281
- }
282
-
283
- export const wuVue: WuVueAdapter;
284
- export default wuVue;
285
-
286
- // ============================================================================
287
- // Global Augmentations
288
- // ============================================================================
289
-
290
- declare module '@vue/runtime-core' {
291
- interface ComponentCustomProperties {
292
- /** Wu Framework instance */
293
- $wu: WuInstance | null;
294
- /** Wu Framework EventBus helpers */
295
- $wuEvents: UseWuEventsReturn;
296
- /** Wu Framework Store factory */
297
- $wuStore: <T = any>(namespace?: string) => UseWuStoreReturn<T>;
298
- }
299
- }
1
+ /**
2
+ * Wu Framework Vue Adapter - TypeScript Definitions
3
+ */
4
+
5
+ import { App, Component, Ref, DefineComponent } from 'vue';
6
+
7
+ // ============================================================================
8
+ // Core Types (shared with React adapter)
9
+ // ============================================================================
10
+
11
+ export interface WuInstance {
12
+ init: (config: WuConfig) => Promise<void>;
13
+ mount: (appName: string, container: string) => Promise<void>;
14
+ unmount: (appName: string) => Promise<void>;
15
+ define: (appName: string, lifecycle: WuLifecycle) => void;
16
+ app: (name: string, config: WuAppConfig) => WuApp;
17
+ eventBus: WuEventBus;
18
+ store: WuStore;
19
+ }
20
+
21
+ export interface WuConfig {
22
+ apps: Array<{
23
+ name: string;
24
+ url: string;
25
+ strategy?: 'lazy' | 'eager' | 'preload' | 'idle';
26
+ }>;
27
+ }
28
+
29
+ export interface WuLifecycle {
30
+ mount: (container: HTMLElement) => void | Promise<void>;
31
+ unmount: (container?: HTMLElement) => void | Promise<void>;
32
+ }
33
+
34
+ export interface WuAppConfig {
35
+ url: string;
36
+ container: string;
37
+ autoInit?: boolean;
38
+ }
39
+
40
+ export interface WuApp {
41
+ mount: (container?: string) => Promise<void>;
42
+ unmount: () => Promise<void>;
43
+ remount: () => Promise<void>;
44
+ reload: () => Promise<void>;
45
+ destroy: () => Promise<void>;
46
+ isMounted: boolean;
47
+ info: WuAppInfo;
48
+ }
49
+
50
+ export interface WuAppInfo {
51
+ name: string;
52
+ url: string;
53
+ mounted: boolean;
54
+ status: 'stable' | 'refreshed' | 'unstable';
55
+ }
56
+
57
+ export interface WuEventBus {
58
+ emit: (event: string, data?: any, options?: EmitOptions) => void;
59
+ on: (event: string, callback: EventCallback) => () => void;
60
+ once: (event: string, callback: EventCallback) => () => void;
61
+ off: (event: string, callback?: EventCallback) => void;
62
+ }
63
+
64
+ export interface WuStore {
65
+ get: (path?: string) => any;
66
+ set: (path: string, value: any) => number;
67
+ on: (pattern: string, callback: StoreCallback) => () => void;
68
+ batch: (updates: Record<string, any>) => number[];
69
+ clear: () => void;
70
+ }
71
+
72
+ export type EventCallback = (event: WuEvent) => void;
73
+ export type StoreCallback = (change: { path: string; value: any }) => void;
74
+
75
+ export interface WuEvent {
76
+ name: string;
77
+ data: any;
78
+ timestamp: number;
79
+ source?: string;
80
+ }
81
+
82
+ export interface EmitOptions {
83
+ appName?: string;
84
+ timestamp?: number;
85
+ meta?: Record<string, any>;
86
+ }
87
+
88
+ // ============================================================================
89
+ // Vue Adapter Types
90
+ // ============================================================================
91
+
92
+ export interface VueRegisterOptions {
93
+ /**
94
+ * Function to configure the Vue app (install plugins, add global components, etc.)
95
+ * @param app - Vue app instance
96
+ */
97
+ setup?: (app: App) => void;
98
+ /** Initial props for the component */
99
+ props?: Record<string, any>;
100
+ /** Callback after mounting */
101
+ onMount?: (container: HTMLElement, app: App) => void;
102
+ /** Callback before unmounting */
103
+ onUnmount?: (container: HTMLElement, app: App) => void;
104
+ /** Allow standalone execution (default: true) */
105
+ standalone?: boolean;
106
+ /** Selector for standalone mode (default: '#app') */
107
+ standaloneContainer?: string;
108
+ }
109
+
110
+ /**
111
+ * Register a Vue component as a microfrontend
112
+ *
113
+ * @example
114
+ * // Basic
115
+ * wuVue.register('my-app', App);
116
+ *
117
+ * @example
118
+ * // With plugins
119
+ * wuVue.register('my-app', App, {
120
+ * setup: (app) => {
121
+ * app.use(createPinia());
122
+ * app.use(router);
123
+ * }
124
+ * });
125
+ */
126
+ export function register(
127
+ appName: string,
128
+ RootComponent: Component,
129
+ options?: VueRegisterOptions
130
+ ): Promise<boolean>;
131
+
132
+ // ============================================================================
133
+ // WuSlot Component Types
134
+ // ============================================================================
135
+
136
+ export interface WuSlotProps {
137
+ /** Display name for the microfrontend */
138
+ name: string;
139
+ /** URL where the microfrontend is hosted */
140
+ url: string;
141
+ /** App name from wu.json (defaults to name if not provided) */
142
+ appName?: string;
143
+ /** Custom fallback text while loading */
144
+ fallbackText?: string;
145
+ }
146
+
147
+ export interface WuSlotEmits {
148
+ /** Emitted when microfrontend loads successfully */
149
+ (e: 'load', info: { name: string; url: string }): void;
150
+ /** Emitted when loading fails */
151
+ (e: 'error', error: Error): void;
152
+ /** Emitted when microfrontend mounts */
153
+ (e: 'mount', info: { name: string; container: HTMLElement }): void;
154
+ /** Emitted when microfrontend unmounts */
155
+ (e: 'unmount', info: { name: string }): void;
156
+ }
157
+
158
+ /**
159
+ * Vue component for loading microfrontends
160
+ *
161
+ * @example
162
+ * <WuSlot name="my-app" url="http://localhost:3001" @load="onLoad" />
163
+ */
164
+ export const WuSlot: DefineComponent<WuSlotProps, {}, {}, {}, {}, {}, {}, WuSlotEmits>;
165
+
166
+ // ============================================================================
167
+ // Composables Types
168
+ // ============================================================================
169
+
170
+ export interface UseWuEventsReturn {
171
+ /** Emit an event to the event bus */
172
+ emit: (event: string, data?: any, options?: EmitOptions) => void;
173
+ /** Subscribe to an event */
174
+ on: (event: string, callback: EventCallback) => () => void;
175
+ /** Subscribe to an event once */
176
+ once: (event: string, callback: EventCallback) => () => void;
177
+ /** Unsubscribe from an event */
178
+ off: (event: string, callback?: EventCallback) => void;
179
+ /** Clean up all subscriptions (call in onUnmounted) */
180
+ cleanup: () => void;
181
+ }
182
+
183
+ /**
184
+ * Composable for using Wu Framework EventBus
185
+ *
186
+ * @example
187
+ * const { emit, on, cleanup } = useWuEvents();
188
+ *
189
+ * onMounted(() => {
190
+ * on('user:login', handleLogin);
191
+ * });
192
+ *
193
+ * onUnmounted(() => {
194
+ * cleanup();
195
+ * });
196
+ */
197
+ export function useWuEvents(): UseWuEventsReturn;
198
+
199
+ export interface UseWuStoreReturn<T = any> {
200
+ /** Reactive state value */
201
+ state: Ref<T | null>;
202
+ /** Set a value in the store */
203
+ setState: (path: string, value: any) => void;
204
+ /** Get a value from the store */
205
+ getState: (path?: string) => any;
206
+ /** Clean up subscription (call in onUnmounted) */
207
+ cleanup: () => void;
208
+ }
209
+
210
+ /**
211
+ * Composable for using Wu Framework Store
212
+ *
213
+ * @example
214
+ * const { state, setState, getState, cleanup } = useWuStore('user');
215
+ *
216
+ * // state.value is reactive
217
+ * watchEffect(() => {
218
+ * console.log('User changed:', state.value);
219
+ * });
220
+ *
221
+ * onUnmounted(() => {
222
+ * cleanup();
223
+ * });
224
+ */
225
+ export function useWuStore<T = any>(namespace?: string): UseWuStoreReturn<T>;
226
+
227
+ // ============================================================================
228
+ // Plugin Types
229
+ // ============================================================================
230
+
231
+ export interface WuVuePluginOptions {
232
+ // Reserved for future options
233
+ }
234
+
235
+ /**
236
+ * Vue plugin to install Wu Framework globally
237
+ *
238
+ * @example
239
+ * import { createApp } from 'vue';
240
+ * import { wuVuePlugin } from 'wu-framework/adapters/vue';
241
+ *
242
+ * const app = createApp(App);
243
+ * app.use(wuVuePlugin);
244
+ *
245
+ * // Now you can use:
246
+ * // - <WuSlot /> component globally
247
+ * // - this.$wu in Options API
248
+ * // - inject('wu') in Composition API
249
+ */
250
+ export const wuVuePlugin: {
251
+ install: (app: App, options?: WuVuePluginOptions) => void;
252
+ };
253
+
254
+ // ============================================================================
255
+ // Utility Functions
256
+ // ============================================================================
257
+
258
+ /**
259
+ * Get the Wu Framework instance
260
+ */
261
+ export function getWuInstance(): WuInstance | null;
262
+
263
+ /**
264
+ * Wait for Wu Framework to be available
265
+ * @param timeout - Maximum time to wait in ms (default: 5000)
266
+ */
267
+ export function waitForWu(timeout?: number): Promise<WuInstance>;
268
+
269
+ // ============================================================================
270
+ // Main Export
271
+ // ============================================================================
272
+
273
+ export interface WuVueAdapter {
274
+ register: typeof register;
275
+ WuSlot: typeof WuSlot;
276
+ useWuEvents: typeof useWuEvents;
277
+ useWuStore: typeof useWuStore;
278
+ wuVuePlugin: typeof wuVuePlugin;
279
+ getWuInstance: typeof getWuInstance;
280
+ waitForWu: typeof waitForWu;
281
+ }
282
+
283
+ export const wuVue: WuVueAdapter;
284
+ export default wuVue;
285
+
286
+ // ============================================================================
287
+ // Global Augmentations
288
+ // ============================================================================
289
+
290
+ declare module '@vue/runtime-core' {
291
+ interface ComponentCustomProperties {
292
+ /** Wu Framework instance */
293
+ $wu: WuInstance | null;
294
+ /** Wu Framework EventBus helpers */
295
+ $wuEvents: UseWuEventsReturn;
296
+ /** Wu Framework Store factory */
297
+ $wuStore: <T = any>(namespace?: string) => UseWuStoreReturn<T>;
298
+ }
299
+ }