@gears-frontx/react 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.
- package/CLAUDE.md +421 -0
- package/commands/hai3-duplicate-screenset.md +58 -0
- package/commands/hai3-new-component.md +48 -0
- package/commands/hai3-new-mfe.md +166 -0
- package/commands/hai3-new-screen.md +39 -0
- package/commands/hai3-new-screenset.md +47 -0
- package/dist/index.cjs +903 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +590 -0
- package/dist/index.d.ts +590 -0
- package/dist/index.js +872 -0
- package/dist/index.js.map +1 -0
- package/dist/types-Cp8Zm5s0.d.cts +136 -0
- package/dist/types-Cp8Zm5s0.d.ts +136 -0
- package/dist/types.cjs +19 -0
- package/dist/types.cjs.map +1 -0
- package/dist/types.d.cts +3 -0
- package/dist/types.d.ts +3 -0
- package/dist/types.js +1 -0
- package/dist/types.js.map +1 -0
- package/llms.txt +122 -0
- package/package.json +75 -0
package/dist/index.cjs
ADDED
|
@@ -0,0 +1,903 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
|
|
20
|
+
// src/index.ts
|
|
21
|
+
var src_exports = {};
|
|
22
|
+
__export(src_exports, {
|
|
23
|
+
ACCOUNTS_DOMAIN: () => import_framework6.ACCOUNTS_DOMAIN,
|
|
24
|
+
ApiPlugin: () => import_framework6.ApiPlugin,
|
|
25
|
+
ApiPluginBase: () => import_framework6.ApiPluginBase,
|
|
26
|
+
ApiProtocol: () => import_framework6.ApiProtocol,
|
|
27
|
+
BaseApiService: () => import_framework6.BaseApiService,
|
|
28
|
+
ContainerProvider: () => import_framework15.ContainerProvider,
|
|
29
|
+
ExtensionDomainSlot: () => ExtensionDomainSlot,
|
|
30
|
+
FRONTX_ACTION_LOAD_EXT: () => import_framework13.FRONTX_ACTION_LOAD_EXT,
|
|
31
|
+
FRONTX_ACTION_MOUNT_EXT: () => import_framework13.FRONTX_ACTION_MOUNT_EXT,
|
|
32
|
+
FRONTX_ACTION_UNMOUNT_EXT: () => import_framework13.FRONTX_ACTION_UNMOUNT_EXT,
|
|
33
|
+
FRONTX_MFE_ENTRY_MF: () => import_framework12.FRONTX_MFE_ENTRY_MF,
|
|
34
|
+
FRONTX_OVERLAY_DOMAIN: () => import_framework11.FRONTX_OVERLAY_DOMAIN,
|
|
35
|
+
FRONTX_POPUP_DOMAIN: () => import_framework11.FRONTX_POPUP_DOMAIN,
|
|
36
|
+
FRONTX_SCREEN_DOMAIN: () => import_framework11.FRONTX_SCREEN_DOMAIN,
|
|
37
|
+
FRONTX_SCREEN_EXTENSION_TYPE: () => import_framework12.FRONTX_SCREEN_EXTENSION_TYPE,
|
|
38
|
+
FRONTX_SHARED_PROPERTY_LANGUAGE: () => import_framework14.FRONTX_SHARED_PROPERTY_LANGUAGE,
|
|
39
|
+
FRONTX_SHARED_PROPERTY_THEME: () => import_framework14.FRONTX_SHARED_PROPERTY_THEME,
|
|
40
|
+
FRONTX_SIDEBAR_DOMAIN: () => import_framework11.FRONTX_SIDEBAR_DOMAIN,
|
|
41
|
+
HAI3Context: () => HAI3Context,
|
|
42
|
+
HAI3Provider: () => HAI3Provider,
|
|
43
|
+
I18nRegistry: () => import_framework6.I18nRegistry,
|
|
44
|
+
I18nRegistryImpl: () => import_framework6.I18nRegistryImpl,
|
|
45
|
+
LAYOUT_SLICE_NAME: () => import_framework6.LAYOUT_SLICE_NAME,
|
|
46
|
+
Language: () => import_framework7.Language,
|
|
47
|
+
LanguageDisplayMode: () => import_framework7.LanguageDisplayMode,
|
|
48
|
+
LayoutDomain: () => import_framework6.LayoutDomain,
|
|
49
|
+
MOCK_PLUGIN: () => import_framework6.MOCK_PLUGIN,
|
|
50
|
+
MfeBridgeFactory: () => import_framework15.MfeBridgeFactory,
|
|
51
|
+
MfeContext: () => MfeContext,
|
|
52
|
+
MfeHandler: () => import_framework15.MfeHandler,
|
|
53
|
+
MfeHandlerMF: () => import_framework16.MfeHandlerMF,
|
|
54
|
+
MfeProvider: () => MfeProvider,
|
|
55
|
+
MockEventSource: () => import_framework6.MockEventSource,
|
|
56
|
+
MockEvents: () => import_framework6.MockEvents,
|
|
57
|
+
RefContainerProvider: () => RefContainerProvider,
|
|
58
|
+
RestMockPlugin: () => import_framework6.RestMockPlugin,
|
|
59
|
+
RestPlugin: () => import_framework6.RestPlugin,
|
|
60
|
+
RestPluginWithConfig: () => import_framework6.RestPluginWithConfig,
|
|
61
|
+
RestProtocol: () => import_framework6.RestProtocol,
|
|
62
|
+
SUPPORTED_LANGUAGES: () => import_framework6.SUPPORTED_LANGUAGES,
|
|
63
|
+
ScreensetsRegistry: () => import_framework15.ScreensetsRegistry,
|
|
64
|
+
ScreensetsRegistryFactory: () => import_framework15.ScreensetsRegistryFactory,
|
|
65
|
+
SseMockPlugin: () => import_framework6.SseMockPlugin,
|
|
66
|
+
SsePlugin: () => import_framework6.SsePlugin,
|
|
67
|
+
SsePluginWithConfig: () => import_framework6.SsePluginWithConfig,
|
|
68
|
+
SseProtocol: () => import_framework6.SseProtocol,
|
|
69
|
+
TENANT_SLICE_NAME: () => import_framework6.TENANT_SLICE_NAME,
|
|
70
|
+
TenantEvents: () => import_framework6.TenantEvents,
|
|
71
|
+
TextDirection: () => import_framework7.TextDirection,
|
|
72
|
+
apiRegistry: () => import_framework6.apiRegistry,
|
|
73
|
+
changeTenant: () => import_framework6.changeTenant,
|
|
74
|
+
clearActiveScreen: () => import_framework6.clearActiveScreen,
|
|
75
|
+
clearTenant: () => import_framework6.clearTenant,
|
|
76
|
+
clearTenantAction: () => import_framework6.clearTenantAction,
|
|
77
|
+
clearUser: () => import_framework6.clearUser,
|
|
78
|
+
closeAllPopups: () => import_framework6.closeAllPopups,
|
|
79
|
+
closePopup: () => import_framework6.closePopup,
|
|
80
|
+
closeTopPopup: () => import_framework6.closeTopPopup,
|
|
81
|
+
createHAI3: () => import_framework6.createHAI3,
|
|
82
|
+
createHAI3App: () => import_framework6.createHAI3App,
|
|
83
|
+
createI18nRegistry: () => import_framework6.createI18nRegistry,
|
|
84
|
+
createShadowRoot: () => import_framework18.createShadowRoot,
|
|
85
|
+
createSlice: () => import_framework6.createSlice,
|
|
86
|
+
createStore: () => import_framework6.createStore,
|
|
87
|
+
createThemeRegistry: () => import_framework6.createThemeRegistry,
|
|
88
|
+
effects: () => import_framework6.effects,
|
|
89
|
+
eventBus: () => eventBus,
|
|
90
|
+
extensionScreenSchema: () => import_framework17.extensionScreenSchema,
|
|
91
|
+
extractGtsPackage: () => import_framework18.extractGtsPackage,
|
|
92
|
+
footerActions: () => import_framework6.footerActions,
|
|
93
|
+
footerSlice: () => import_framework6.footerSlice,
|
|
94
|
+
getLanguageMetadata: () => import_framework6.getLanguageMetadata,
|
|
95
|
+
getStore: () => import_framework6.getStore,
|
|
96
|
+
gtsPlugin: () => import_framework16.gtsPlugin,
|
|
97
|
+
hasSlice: () => import_framework6.hasSlice,
|
|
98
|
+
headerActions: () => import_framework6.headerActions,
|
|
99
|
+
headerSlice: () => import_framework6.headerSlice,
|
|
100
|
+
hideOverlay: () => import_framework6.hideOverlay,
|
|
101
|
+
i18n: () => import_framework6.i18n,
|
|
102
|
+
i18nRegistry: () => import_framework6.i18nRegistry,
|
|
103
|
+
initMockEffects: () => import_framework6.initMockEffects,
|
|
104
|
+
initTenantEffects: () => import_framework6.initTenantEffects,
|
|
105
|
+
injectCssVariables: () => import_framework18.injectCssVariables,
|
|
106
|
+
isMockPlugin: () => import_framework6.isMockPlugin,
|
|
107
|
+
isRestShortCircuit: () => import_framework6.isRestShortCircuit,
|
|
108
|
+
isShortCircuit: () => import_framework6.isShortCircuit,
|
|
109
|
+
isSseShortCircuit: () => import_framework6.isSseShortCircuit,
|
|
110
|
+
languageSchema: () => import_framework17.languageSchema,
|
|
111
|
+
layout: () => import_framework6.layout,
|
|
112
|
+
layoutDomainReducers: () => import_framework6.layoutDomainReducers,
|
|
113
|
+
layoutReducer: () => import_framework6.layoutReducer,
|
|
114
|
+
loadExtension: () => import_framework9.loadExtension,
|
|
115
|
+
menuActions: () => import_framework6.menuActions,
|
|
116
|
+
menuSlice: () => import_framework6.menuSlice,
|
|
117
|
+
microfrontends: () => import_framework8.microfrontends,
|
|
118
|
+
mock: () => import_framework8.mock,
|
|
119
|
+
mockActions: () => import_framework6.mockActions,
|
|
120
|
+
mockSlice: () => import_framework6.mockSlice,
|
|
121
|
+
mountExtension: () => import_framework9.mountExtension,
|
|
122
|
+
navigateTo: () => import_framework6.navigateTo,
|
|
123
|
+
openPopup: () => import_framework6.openPopup,
|
|
124
|
+
overlayActions: () => import_framework6.overlayActions,
|
|
125
|
+
overlayDomain: () => import_framework11.overlayDomain,
|
|
126
|
+
overlaySlice: () => import_framework6.overlaySlice,
|
|
127
|
+
popupActions: () => import_framework6.popupActions,
|
|
128
|
+
popupDomain: () => import_framework11.popupDomain,
|
|
129
|
+
popupSlice: () => import_framework6.popupSlice,
|
|
130
|
+
presets: () => import_framework6.presets,
|
|
131
|
+
registerExtension: () => import_framework9.registerExtension,
|
|
132
|
+
registerSlice: () => import_framework6.registerSlice,
|
|
133
|
+
screenActions: () => import_framework6.screenActions,
|
|
134
|
+
screenDomain: () => import_framework11.screenDomain,
|
|
135
|
+
screenSlice: () => import_framework6.screenSlice,
|
|
136
|
+
screensets: () => import_framework6.screensets,
|
|
137
|
+
screensetsRegistryFactory: () => import_framework15.screensetsRegistryFactory,
|
|
138
|
+
selectExtensionError: () => import_framework10.selectExtensionError,
|
|
139
|
+
selectExtensionState: () => import_framework10.selectExtensionState,
|
|
140
|
+
selectRegisteredExtensions: () => import_framework10.selectRegisteredExtensions,
|
|
141
|
+
setActiveScreen: () => import_framework6.setActiveScreen,
|
|
142
|
+
setFooterConfig: () => import_framework6.setFooterConfig,
|
|
143
|
+
setFooterVisible: () => import_framework6.setFooterVisible,
|
|
144
|
+
setHeaderLoading: () => import_framework6.setHeaderLoading,
|
|
145
|
+
setMenuCollapsed: () => import_framework6.setMenuCollapsed,
|
|
146
|
+
setMenuConfig: () => import_framework6.setMenuConfig,
|
|
147
|
+
setMenuItems: () => import_framework6.setMenuItems,
|
|
148
|
+
setMenuVisible: () => import_framework6.setMenuVisible,
|
|
149
|
+
setMockEnabled: () => import_framework6.setMockEnabled,
|
|
150
|
+
setOverlayVisible: () => import_framework6.setOverlayVisible,
|
|
151
|
+
setScreenLoading: () => import_framework6.setScreenLoading,
|
|
152
|
+
setSidebarCollapsed: () => import_framework6.setSidebarCollapsed,
|
|
153
|
+
setSidebarConfig: () => import_framework6.setSidebarConfig,
|
|
154
|
+
setSidebarContent: () => import_framework6.setSidebarContent,
|
|
155
|
+
setSidebarPosition: () => import_framework6.setSidebarPosition,
|
|
156
|
+
setSidebarTitle: () => import_framework6.setSidebarTitle,
|
|
157
|
+
setSidebarVisible: () => import_framework6.setSidebarVisible,
|
|
158
|
+
setSidebarWidth: () => import_framework6.setSidebarWidth,
|
|
159
|
+
setTenant: () => import_framework6.setTenant,
|
|
160
|
+
setTenantLoading: () => import_framework6.setTenantLoading,
|
|
161
|
+
setTenantLoadingState: () => import_framework6.setTenantLoadingState,
|
|
162
|
+
setUser: () => import_framework6.setUser,
|
|
163
|
+
showOverlay: () => import_framework6.showOverlay,
|
|
164
|
+
sidebarActions: () => import_framework6.sidebarActions,
|
|
165
|
+
sidebarDomain: () => import_framework11.sidebarDomain,
|
|
166
|
+
sidebarSlice: () => import_framework6.sidebarSlice,
|
|
167
|
+
tenantActions: () => import_framework6.tenantActions,
|
|
168
|
+
tenantReducer: () => import_framework6.tenantReducer,
|
|
169
|
+
tenantSlice: () => import_framework6.tenantSlice,
|
|
170
|
+
themeSchema: () => import_framework17.themeSchema,
|
|
171
|
+
themes: () => import_framework6.themes,
|
|
172
|
+
toggleMenu: () => import_framework6.toggleMenu,
|
|
173
|
+
toggleMockMode: () => import_framework6.toggleMockMode,
|
|
174
|
+
toggleSidebar: () => import_framework6.toggleSidebar,
|
|
175
|
+
unmountExtension: () => import_framework9.unmountExtension,
|
|
176
|
+
unregisterExtension: () => import_framework9.unregisterExtension,
|
|
177
|
+
useActivePackage: () => useActivePackage,
|
|
178
|
+
useAppDispatch: () => useAppDispatch,
|
|
179
|
+
useAppSelector: () => useAppSelector,
|
|
180
|
+
useDomainExtensions: () => useDomainExtensions,
|
|
181
|
+
useFormatters: () => useFormatters,
|
|
182
|
+
useHAI3: () => useHAI3,
|
|
183
|
+
useHostAction: () => useHostAction,
|
|
184
|
+
useMfeBridge: () => useMfeBridge,
|
|
185
|
+
useMfeContext: () => useMfeContext,
|
|
186
|
+
useRegisteredPackages: () => useRegisteredPackages,
|
|
187
|
+
useScreenTranslations: () => useScreenTranslations,
|
|
188
|
+
useSharedProperty: () => useSharedProperty,
|
|
189
|
+
useTheme: () => useTheme,
|
|
190
|
+
useTranslation: () => useTranslation
|
|
191
|
+
});
|
|
192
|
+
module.exports = __toCommonJS(src_exports);
|
|
193
|
+
|
|
194
|
+
// src/HAI3Provider.tsx
|
|
195
|
+
var import_react3 = require("react");
|
|
196
|
+
var import_react_redux = require("react-redux");
|
|
197
|
+
var import_framework = require("@gears-frontx/framework");
|
|
198
|
+
|
|
199
|
+
// src/HAI3Context.tsx
|
|
200
|
+
var import_react = require("react");
|
|
201
|
+
var HAI3Context = (0, import_react.createContext)(null);
|
|
202
|
+
function useHAI3() {
|
|
203
|
+
const context = (0, import_react.useContext)(HAI3Context);
|
|
204
|
+
if (!context) {
|
|
205
|
+
throw new Error(
|
|
206
|
+
"useHAI3 must be used within a HAI3Provider. Wrap your application with <HAI3Provider> to access HAI3 features."
|
|
207
|
+
);
|
|
208
|
+
}
|
|
209
|
+
return context;
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
// src/mfe/MfeContext.tsx
|
|
213
|
+
var import_react2 = require("react");
|
|
214
|
+
var MfeContext = (0, import_react2.createContext)(null);
|
|
215
|
+
function useMfeContext() {
|
|
216
|
+
const context = (0, import_react2.useContext)(MfeContext);
|
|
217
|
+
if (!context) {
|
|
218
|
+
throw new Error(
|
|
219
|
+
"useMfeContext must be used within a MfeProvider. This hook can only be used inside MFE components."
|
|
220
|
+
);
|
|
221
|
+
}
|
|
222
|
+
return context;
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
// src/mfe/MfeProvider.tsx
|
|
226
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
227
|
+
var MfeProvider = ({ value, children }) => {
|
|
228
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(MfeContext.Provider, { value, children });
|
|
229
|
+
};
|
|
230
|
+
|
|
231
|
+
// src/HAI3Provider.tsx
|
|
232
|
+
var import_jsx_runtime2 = require("react/jsx-runtime");
|
|
233
|
+
var HAI3Provider = ({
|
|
234
|
+
children,
|
|
235
|
+
config,
|
|
236
|
+
app: providedApp,
|
|
237
|
+
mfeBridge
|
|
238
|
+
}) => {
|
|
239
|
+
const app = (0, import_react3.useMemo)(() => {
|
|
240
|
+
if (providedApp) {
|
|
241
|
+
return providedApp;
|
|
242
|
+
}
|
|
243
|
+
return (0, import_framework.createHAI3App)(config);
|
|
244
|
+
}, [providedApp, config]);
|
|
245
|
+
(0, import_react3.useEffect)(() => {
|
|
246
|
+
return () => {
|
|
247
|
+
if (!providedApp) {
|
|
248
|
+
app.destroy();
|
|
249
|
+
}
|
|
250
|
+
};
|
|
251
|
+
}, [app, providedApp]);
|
|
252
|
+
const content = /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(HAI3Context.Provider, { value: app, children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_react_redux.Provider, { store: app.store, children }) });
|
|
253
|
+
if (mfeBridge) {
|
|
254
|
+
return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(MfeProvider, { value: mfeBridge, children: content });
|
|
255
|
+
}
|
|
256
|
+
return content;
|
|
257
|
+
};
|
|
258
|
+
|
|
259
|
+
// src/hooks/useAppDispatch.ts
|
|
260
|
+
var import_react_redux2 = require("react-redux");
|
|
261
|
+
function useAppDispatch() {
|
|
262
|
+
return (0, import_react_redux2.useDispatch)();
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
// src/hooks/useAppSelector.ts
|
|
266
|
+
var import_react_redux3 = require("react-redux");
|
|
267
|
+
var useAppSelector = import_react_redux3.useSelector;
|
|
268
|
+
|
|
269
|
+
// src/hooks/useTranslation.ts
|
|
270
|
+
var import_react4 = require("react");
|
|
271
|
+
function useTranslation() {
|
|
272
|
+
const app = useHAI3();
|
|
273
|
+
const { i18nRegistry: i18nRegistry2 } = app;
|
|
274
|
+
const version = (0, import_react4.useSyncExternalStore)(
|
|
275
|
+
(0, import_react4.useCallback)(
|
|
276
|
+
(callback) => {
|
|
277
|
+
return i18nRegistry2.subscribe(callback);
|
|
278
|
+
},
|
|
279
|
+
[i18nRegistry2]
|
|
280
|
+
),
|
|
281
|
+
() => i18nRegistry2.getVersion(),
|
|
282
|
+
() => i18nRegistry2.getVersion()
|
|
283
|
+
);
|
|
284
|
+
const language = (0, import_react4.useMemo)(() => {
|
|
285
|
+
void version;
|
|
286
|
+
return i18nRegistry2.getLanguage();
|
|
287
|
+
}, [i18nRegistry2, version]);
|
|
288
|
+
const t = (0, import_react4.useCallback)(
|
|
289
|
+
(key, params) => {
|
|
290
|
+
return i18nRegistry2.t(key, params);
|
|
291
|
+
},
|
|
292
|
+
[i18nRegistry2]
|
|
293
|
+
);
|
|
294
|
+
const setLanguage = (0, import_react4.useCallback)(
|
|
295
|
+
(lang) => {
|
|
296
|
+
if (app.actions.setLanguage) {
|
|
297
|
+
app.actions.setLanguage({ language: lang });
|
|
298
|
+
}
|
|
299
|
+
},
|
|
300
|
+
[app.actions]
|
|
301
|
+
);
|
|
302
|
+
const isRTL = (0, import_react4.useMemo)(() => {
|
|
303
|
+
void language;
|
|
304
|
+
return i18nRegistry2.isRTL();
|
|
305
|
+
}, [i18nRegistry2, language]);
|
|
306
|
+
return {
|
|
307
|
+
t,
|
|
308
|
+
language,
|
|
309
|
+
setLanguage,
|
|
310
|
+
isRTL
|
|
311
|
+
};
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
// src/hooks/useScreenTranslations.ts
|
|
315
|
+
var import_react5 = require("react");
|
|
316
|
+
function isTranslationLoader(input) {
|
|
317
|
+
return typeof input === "function";
|
|
318
|
+
}
|
|
319
|
+
function useScreenTranslations(screensetId, screenId, translations) {
|
|
320
|
+
const app = useHAI3();
|
|
321
|
+
const { i18nRegistry: i18nRegistry2 } = app;
|
|
322
|
+
const [loadedLanguage, setLoadedLanguage] = (0, import_react5.useState)(null);
|
|
323
|
+
const [isLoading, setIsLoading] = (0, import_react5.useState)(false);
|
|
324
|
+
const [error, setError] = (0, import_react5.useState)(null);
|
|
325
|
+
const version = (0, import_react5.useSyncExternalStore)(
|
|
326
|
+
(0, import_react5.useCallback)(
|
|
327
|
+
(callback) => i18nRegistry2.subscribe(callback),
|
|
328
|
+
[i18nRegistry2]
|
|
329
|
+
),
|
|
330
|
+
() => i18nRegistry2.getVersion(),
|
|
331
|
+
() => i18nRegistry2.getVersion()
|
|
332
|
+
);
|
|
333
|
+
const currentLanguage = (0, import_react5.useMemo)(() => {
|
|
334
|
+
void version;
|
|
335
|
+
return i18nRegistry2.getLanguage();
|
|
336
|
+
}, [i18nRegistry2, version]);
|
|
337
|
+
const loader = (0, import_react5.useMemo)(() => {
|
|
338
|
+
if (isTranslationLoader(translations)) {
|
|
339
|
+
return translations;
|
|
340
|
+
}
|
|
341
|
+
return async (language) => {
|
|
342
|
+
const importFn = translations[language];
|
|
343
|
+
if (!importFn) {
|
|
344
|
+
return {};
|
|
345
|
+
}
|
|
346
|
+
const module2 = await importFn();
|
|
347
|
+
return module2.default;
|
|
348
|
+
};
|
|
349
|
+
}, [translations]);
|
|
350
|
+
(0, import_react5.useEffect)(() => {
|
|
351
|
+
if (!currentLanguage || currentLanguage === loadedLanguage) {
|
|
352
|
+
return;
|
|
353
|
+
}
|
|
354
|
+
let cancelled = false;
|
|
355
|
+
setIsLoading(true);
|
|
356
|
+
const loadTranslations = async () => {
|
|
357
|
+
try {
|
|
358
|
+
const namespace = `screen.${screensetId}.${screenId}`;
|
|
359
|
+
i18nRegistry2.registerLoader(namespace, loader);
|
|
360
|
+
const loadedTranslations = await loader(currentLanguage);
|
|
361
|
+
i18nRegistry2.register(namespace, currentLanguage, loadedTranslations);
|
|
362
|
+
if (!cancelled) {
|
|
363
|
+
setLoadedLanguage(currentLanguage);
|
|
364
|
+
setIsLoading(false);
|
|
365
|
+
setError(null);
|
|
366
|
+
}
|
|
367
|
+
} catch (err) {
|
|
368
|
+
if (!cancelled) {
|
|
369
|
+
setError(err instanceof Error ? err : new Error(String(err)));
|
|
370
|
+
setIsLoading(false);
|
|
371
|
+
}
|
|
372
|
+
}
|
|
373
|
+
};
|
|
374
|
+
loadTranslations();
|
|
375
|
+
return () => {
|
|
376
|
+
cancelled = true;
|
|
377
|
+
};
|
|
378
|
+
}, [screensetId, screenId, loader, i18nRegistry2, currentLanguage, loadedLanguage]);
|
|
379
|
+
const isLoaded = currentLanguage !== null && currentLanguage === loadedLanguage && !isLoading;
|
|
380
|
+
return { isLoaded, error };
|
|
381
|
+
}
|
|
382
|
+
|
|
383
|
+
// src/hooks/useFormatters.ts
|
|
384
|
+
var import_react6 = require("react");
|
|
385
|
+
var import_framework2 = require("@gears-frontx/framework");
|
|
386
|
+
function useFormatters() {
|
|
387
|
+
const { language } = useTranslation();
|
|
388
|
+
return (0, import_react6.useMemo)(
|
|
389
|
+
() => {
|
|
390
|
+
void language;
|
|
391
|
+
return {
|
|
392
|
+
formatDate: import_framework2.formatDate,
|
|
393
|
+
formatTime: import_framework2.formatTime,
|
|
394
|
+
formatDateTime: import_framework2.formatDateTime,
|
|
395
|
+
formatRelative: import_framework2.formatRelative,
|
|
396
|
+
formatNumber: import_framework2.formatNumber,
|
|
397
|
+
formatPercent: import_framework2.formatPercent,
|
|
398
|
+
formatCompact: import_framework2.formatCompact,
|
|
399
|
+
formatCurrency: import_framework2.formatCurrency,
|
|
400
|
+
compareStrings: import_framework2.compareStrings,
|
|
401
|
+
createCollator: import_framework2.createCollator
|
|
402
|
+
};
|
|
403
|
+
},
|
|
404
|
+
[language]
|
|
405
|
+
);
|
|
406
|
+
}
|
|
407
|
+
|
|
408
|
+
// src/hooks/useTheme.ts
|
|
409
|
+
var import_react7 = require("react");
|
|
410
|
+
function useTheme() {
|
|
411
|
+
const app = useHAI3();
|
|
412
|
+
const { themeRegistry } = app;
|
|
413
|
+
const version = (0, import_react7.useSyncExternalStore)(
|
|
414
|
+
(0, import_react7.useCallback)(
|
|
415
|
+
(callback) => {
|
|
416
|
+
return themeRegistry.subscribe(callback);
|
|
417
|
+
},
|
|
418
|
+
[themeRegistry]
|
|
419
|
+
),
|
|
420
|
+
() => themeRegistry.getVersion(),
|
|
421
|
+
() => themeRegistry.getVersion()
|
|
422
|
+
);
|
|
423
|
+
const currentTheme = (0, import_react7.useMemo)(() => {
|
|
424
|
+
void version;
|
|
425
|
+
const theme = themeRegistry.getCurrent();
|
|
426
|
+
return theme?.id;
|
|
427
|
+
}, [themeRegistry, version]);
|
|
428
|
+
const themes2 = (0, import_react7.useMemo)(() => {
|
|
429
|
+
return themeRegistry.getAll().map((theme) => ({
|
|
430
|
+
id: theme.id,
|
|
431
|
+
name: theme.name
|
|
432
|
+
}));
|
|
433
|
+
}, [themeRegistry]);
|
|
434
|
+
const setTheme = (0, import_react7.useCallback)(
|
|
435
|
+
(themeId) => {
|
|
436
|
+
if (app.actions.changeTheme) {
|
|
437
|
+
app.actions.changeTheme({ themeId });
|
|
438
|
+
}
|
|
439
|
+
},
|
|
440
|
+
[app.actions]
|
|
441
|
+
);
|
|
442
|
+
return {
|
|
443
|
+
currentTheme,
|
|
444
|
+
themes: themes2,
|
|
445
|
+
setTheme
|
|
446
|
+
};
|
|
447
|
+
}
|
|
448
|
+
|
|
449
|
+
// src/mfe/hooks/useMfeBridge.ts
|
|
450
|
+
function useMfeBridge() {
|
|
451
|
+
const { bridge } = useMfeContext();
|
|
452
|
+
return bridge;
|
|
453
|
+
}
|
|
454
|
+
|
|
455
|
+
// src/mfe/hooks/useSharedProperty.ts
|
|
456
|
+
var import_react8 = require("react");
|
|
457
|
+
function useSharedProperty(propertyTypeId) {
|
|
458
|
+
const { bridge } = useMfeContext();
|
|
459
|
+
const subscribe = (0, import_react8.useCallback)((callback) => {
|
|
460
|
+
return bridge.subscribeToProperty(propertyTypeId, () => {
|
|
461
|
+
callback();
|
|
462
|
+
});
|
|
463
|
+
}, [bridge, propertyTypeId]);
|
|
464
|
+
const getSnapshot = (0, import_react8.useCallback)(() => {
|
|
465
|
+
const property = bridge.getProperty(propertyTypeId);
|
|
466
|
+
return property?.value;
|
|
467
|
+
}, [bridge, propertyTypeId]);
|
|
468
|
+
const value = (0, import_react8.useSyncExternalStore)(subscribe, getSnapshot, getSnapshot);
|
|
469
|
+
return value;
|
|
470
|
+
}
|
|
471
|
+
|
|
472
|
+
// src/mfe/hooks/useHostAction.ts
|
|
473
|
+
var import_react9 = require("react");
|
|
474
|
+
function useHostAction(actionTypeId) {
|
|
475
|
+
const { bridge } = useMfeContext();
|
|
476
|
+
return (0, import_react9.useCallback)((payload) => {
|
|
477
|
+
const chain = {
|
|
478
|
+
action: {
|
|
479
|
+
type: actionTypeId,
|
|
480
|
+
target: bridge.domainId,
|
|
481
|
+
payload
|
|
482
|
+
}
|
|
483
|
+
};
|
|
484
|
+
bridge.executeActionsChain(chain).catch((error) => {
|
|
485
|
+
console.error(
|
|
486
|
+
`[useHostAction] Failed to send action '${actionTypeId}':`,
|
|
487
|
+
error
|
|
488
|
+
);
|
|
489
|
+
});
|
|
490
|
+
}, [actionTypeId, bridge]);
|
|
491
|
+
}
|
|
492
|
+
|
|
493
|
+
// src/mfe/hooks/useDomainExtensions.ts
|
|
494
|
+
var import_react10 = require("react");
|
|
495
|
+
function useDomainExtensions(domainId) {
|
|
496
|
+
const app = useHAI3();
|
|
497
|
+
const registry = app.screensetsRegistry;
|
|
498
|
+
if (!registry) {
|
|
499
|
+
throw new Error(
|
|
500
|
+
"useDomainExtensions requires the microfrontends plugin. Add microfrontends() to your HAI3 app configuration."
|
|
501
|
+
);
|
|
502
|
+
}
|
|
503
|
+
const subscribe = (0, import_react10.useCallback)(
|
|
504
|
+
(onStoreChange) => {
|
|
505
|
+
return app.store.subscribe(onStoreChange);
|
|
506
|
+
},
|
|
507
|
+
[app.store]
|
|
508
|
+
);
|
|
509
|
+
const cacheRef = (0, import_react10.useRef)({ ids: "", extensions: [] });
|
|
510
|
+
const getSnapshot = (0, import_react10.useCallback)(() => {
|
|
511
|
+
const extensions = registry.getExtensionsForDomain(domainId);
|
|
512
|
+
const ids = extensions.map((e) => e.id).join(",");
|
|
513
|
+
if (ids !== cacheRef.current.ids) {
|
|
514
|
+
cacheRef.current = { ids, extensions };
|
|
515
|
+
}
|
|
516
|
+
return cacheRef.current.extensions;
|
|
517
|
+
}, [registry, domainId]);
|
|
518
|
+
return (0, import_react10.useSyncExternalStore)(subscribe, getSnapshot, getSnapshot);
|
|
519
|
+
}
|
|
520
|
+
|
|
521
|
+
// src/mfe/hooks/useRegisteredPackages.ts
|
|
522
|
+
var import_react11 = require("react");
|
|
523
|
+
function useRegisteredPackages() {
|
|
524
|
+
const app = useHAI3();
|
|
525
|
+
const registry = app.screensetsRegistry;
|
|
526
|
+
if (!registry) {
|
|
527
|
+
throw new Error(
|
|
528
|
+
"useRegisteredPackages requires the microfrontends plugin. Add microfrontends() to your HAI3 app configuration."
|
|
529
|
+
);
|
|
530
|
+
}
|
|
531
|
+
const subscribe = (0, import_react11.useCallback)(
|
|
532
|
+
(onStoreChange) => {
|
|
533
|
+
return app.store.subscribe(onStoreChange);
|
|
534
|
+
},
|
|
535
|
+
[app.store]
|
|
536
|
+
);
|
|
537
|
+
const cacheRef = (0, import_react11.useRef)({ packages: "", list: [] });
|
|
538
|
+
const getSnapshot = (0, import_react11.useCallback)(() => {
|
|
539
|
+
const list = registry.getRegisteredPackages();
|
|
540
|
+
const packages = list.join(",");
|
|
541
|
+
if (packages !== cacheRef.current.packages) {
|
|
542
|
+
cacheRef.current = { packages, list };
|
|
543
|
+
}
|
|
544
|
+
return cacheRef.current.list;
|
|
545
|
+
}, [registry]);
|
|
546
|
+
return (0, import_react11.useSyncExternalStore)(subscribe, getSnapshot, getSnapshot);
|
|
547
|
+
}
|
|
548
|
+
|
|
549
|
+
// src/mfe/hooks/useActivePackage.ts
|
|
550
|
+
var import_react12 = require("react");
|
|
551
|
+
var import_framework3 = require("@gears-frontx/framework");
|
|
552
|
+
function useActivePackage() {
|
|
553
|
+
const app = useHAI3();
|
|
554
|
+
const registry = app.screensetsRegistry;
|
|
555
|
+
if (!registry) {
|
|
556
|
+
throw new Error(
|
|
557
|
+
"useActivePackage requires the microfrontends plugin. Add microfrontends() to your HAI3 app configuration."
|
|
558
|
+
);
|
|
559
|
+
}
|
|
560
|
+
const subscribe = (0, import_react12.useCallback)(
|
|
561
|
+
(onStoreChange) => {
|
|
562
|
+
return app.store.subscribe(onStoreChange);
|
|
563
|
+
},
|
|
564
|
+
[app.store]
|
|
565
|
+
);
|
|
566
|
+
const cacheRef = (0, import_react12.useRef)({ activePackage: void 0 });
|
|
567
|
+
const getSnapshot = (0, import_react12.useCallback)(() => {
|
|
568
|
+
const mountedExtensionId = registry.getMountedExtension(import_framework3.FRONTX_SCREEN_DOMAIN);
|
|
569
|
+
if (!mountedExtensionId) {
|
|
570
|
+
const result = void 0;
|
|
571
|
+
if (result !== cacheRef.current.activePackage) {
|
|
572
|
+
cacheRef.current = { activePackage: result };
|
|
573
|
+
}
|
|
574
|
+
return cacheRef.current.activePackage;
|
|
575
|
+
}
|
|
576
|
+
const activePackage = (0, import_framework3.extractGtsPackage)(mountedExtensionId);
|
|
577
|
+
if (activePackage !== cacheRef.current.activePackage) {
|
|
578
|
+
cacheRef.current = { activePackage };
|
|
579
|
+
}
|
|
580
|
+
return cacheRef.current.activePackage;
|
|
581
|
+
}, [registry]);
|
|
582
|
+
return (0, import_react12.useSyncExternalStore)(subscribe, getSnapshot, getSnapshot);
|
|
583
|
+
}
|
|
584
|
+
|
|
585
|
+
// src/mfe/components/RefContainerProvider.ts
|
|
586
|
+
var import_framework4 = require("@gears-frontx/framework");
|
|
587
|
+
var RefContainerProvider = class extends import_framework4.ContainerProvider {
|
|
588
|
+
constructor(containerRef) {
|
|
589
|
+
super();
|
|
590
|
+
this.containerRef = containerRef;
|
|
591
|
+
}
|
|
592
|
+
getContainer(_extensionId) {
|
|
593
|
+
if (!this.containerRef.current) {
|
|
594
|
+
throw new Error("Container ref is not attached -- component may not be mounted yet");
|
|
595
|
+
}
|
|
596
|
+
return this.containerRef.current;
|
|
597
|
+
}
|
|
598
|
+
releaseContainer(_extensionId) {
|
|
599
|
+
}
|
|
600
|
+
};
|
|
601
|
+
|
|
602
|
+
// src/mfe/components/ExtensionDomainSlot.tsx
|
|
603
|
+
var import_react13 = require("react");
|
|
604
|
+
var import_framework5 = require("@gears-frontx/framework");
|
|
605
|
+
var import_jsx_runtime3 = require("react/jsx-runtime");
|
|
606
|
+
function ExtensionDomainSlot(props) {
|
|
607
|
+
const {
|
|
608
|
+
registry,
|
|
609
|
+
domainId,
|
|
610
|
+
extensionId,
|
|
611
|
+
className,
|
|
612
|
+
onMounted,
|
|
613
|
+
onUnmounted,
|
|
614
|
+
onError,
|
|
615
|
+
loadingComponent,
|
|
616
|
+
errorComponent
|
|
617
|
+
} = props;
|
|
618
|
+
const containerRef = (0, import_react13.useRef)(null);
|
|
619
|
+
const [isLoading, setIsLoading] = (0, import_react13.useState)(true);
|
|
620
|
+
const [error, setError] = (0, import_react13.useState)(null);
|
|
621
|
+
const [bridge, setBridge] = (0, import_react13.useState)(null);
|
|
622
|
+
(0, import_react13.useEffect)(() => {
|
|
623
|
+
let mounted = true;
|
|
624
|
+
let currentBridge = null;
|
|
625
|
+
async function mountExtension2() {
|
|
626
|
+
if (!containerRef.current) {
|
|
627
|
+
return;
|
|
628
|
+
}
|
|
629
|
+
try {
|
|
630
|
+
setIsLoading(true);
|
|
631
|
+
setError(null);
|
|
632
|
+
await registry.executeActionsChain({
|
|
633
|
+
action: {
|
|
634
|
+
type: import_framework5.FRONTX_ACTION_MOUNT_EXT,
|
|
635
|
+
target: domainId,
|
|
636
|
+
payload: {
|
|
637
|
+
extensionId
|
|
638
|
+
}
|
|
639
|
+
}
|
|
640
|
+
});
|
|
641
|
+
if (!mounted) {
|
|
642
|
+
await registry.executeActionsChain({
|
|
643
|
+
action: {
|
|
644
|
+
type: import_framework5.FRONTX_ACTION_UNMOUNT_EXT,
|
|
645
|
+
target: domainId,
|
|
646
|
+
payload: {
|
|
647
|
+
extensionId
|
|
648
|
+
}
|
|
649
|
+
}
|
|
650
|
+
});
|
|
651
|
+
return;
|
|
652
|
+
}
|
|
653
|
+
const newBridge = registry.getParentBridge(extensionId);
|
|
654
|
+
if (!newBridge) {
|
|
655
|
+
throw new Error(`Failed to obtain bridge for extension ${extensionId} after mount`);
|
|
656
|
+
}
|
|
657
|
+
currentBridge = newBridge;
|
|
658
|
+
setBridge(newBridge);
|
|
659
|
+
setIsLoading(false);
|
|
660
|
+
if (onMounted) {
|
|
661
|
+
onMounted(newBridge);
|
|
662
|
+
}
|
|
663
|
+
} catch (err) {
|
|
664
|
+
if (!mounted) {
|
|
665
|
+
return;
|
|
666
|
+
}
|
|
667
|
+
const errorObj = err instanceof Error ? err : new Error(String(err));
|
|
668
|
+
setError(errorObj);
|
|
669
|
+
setIsLoading(false);
|
|
670
|
+
if (onError) {
|
|
671
|
+
onError(errorObj);
|
|
672
|
+
}
|
|
673
|
+
}
|
|
674
|
+
}
|
|
675
|
+
void mountExtension2();
|
|
676
|
+
return () => {
|
|
677
|
+
mounted = false;
|
|
678
|
+
if (currentBridge) {
|
|
679
|
+
void registry.executeActionsChain({
|
|
680
|
+
action: {
|
|
681
|
+
type: import_framework5.FRONTX_ACTION_UNMOUNT_EXT,
|
|
682
|
+
target: domainId,
|
|
683
|
+
payload: {
|
|
684
|
+
extensionId
|
|
685
|
+
}
|
|
686
|
+
}
|
|
687
|
+
}).then(() => {
|
|
688
|
+
if (onUnmounted) {
|
|
689
|
+
onUnmounted();
|
|
690
|
+
}
|
|
691
|
+
});
|
|
692
|
+
}
|
|
693
|
+
};
|
|
694
|
+
}, [registry, domainId, extensionId, onMounted, onUnmounted, onError]);
|
|
695
|
+
if (isLoading) {
|
|
696
|
+
return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("div", { className, "data-domain-id": domainId, "data-extension-id": extensionId, children: loadingComponent ?? /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("div", { children: "Loading extension..." }) });
|
|
697
|
+
}
|
|
698
|
+
if (error) {
|
|
699
|
+
return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("div", { className, "data-domain-id": domainId, "data-extension-id": extensionId, children: errorComponent ? errorComponent(error) : /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { children: [
|
|
700
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("strong", { children: "Error loading extension:" }),
|
|
701
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("pre", { children: error.message })
|
|
702
|
+
] }) });
|
|
703
|
+
}
|
|
704
|
+
return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
|
|
705
|
+
"div",
|
|
706
|
+
{
|
|
707
|
+
ref: containerRef,
|
|
708
|
+
className,
|
|
709
|
+
"data-domain-id": domainId,
|
|
710
|
+
"data-extension-id": extensionId,
|
|
711
|
+
"data-bridge-active": bridge !== null
|
|
712
|
+
}
|
|
713
|
+
);
|
|
714
|
+
}
|
|
715
|
+
|
|
716
|
+
// src/index.ts
|
|
717
|
+
var import_framework6 = require("@gears-frontx/framework");
|
|
718
|
+
var import_framework7 = require("@gears-frontx/framework");
|
|
719
|
+
var import_framework8 = require("@gears-frontx/framework");
|
|
720
|
+
var import_framework9 = require("@gears-frontx/framework");
|
|
721
|
+
var import_framework10 = require("@gears-frontx/framework");
|
|
722
|
+
var import_framework11 = require("@gears-frontx/framework");
|
|
723
|
+
var import_framework12 = require("@gears-frontx/framework");
|
|
724
|
+
var import_framework13 = require("@gears-frontx/framework");
|
|
725
|
+
var import_framework14 = require("@gears-frontx/framework");
|
|
726
|
+
var import_framework15 = require("@gears-frontx/framework");
|
|
727
|
+
var import_framework16 = require("@gears-frontx/framework");
|
|
728
|
+
var import_framework17 = require("@gears-frontx/framework");
|
|
729
|
+
var import_framework18 = require("@gears-frontx/framework");
|
|
730
|
+
var import_framework19 = require("@gears-frontx/framework");
|
|
731
|
+
var eventBus = import_framework19.eventBus;
|
|
732
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
733
|
+
0 && (module.exports = {
|
|
734
|
+
ACCOUNTS_DOMAIN,
|
|
735
|
+
ApiPlugin,
|
|
736
|
+
ApiPluginBase,
|
|
737
|
+
ApiProtocol,
|
|
738
|
+
BaseApiService,
|
|
739
|
+
ContainerProvider,
|
|
740
|
+
ExtensionDomainSlot,
|
|
741
|
+
FRONTX_ACTION_LOAD_EXT,
|
|
742
|
+
FRONTX_ACTION_MOUNT_EXT,
|
|
743
|
+
FRONTX_ACTION_UNMOUNT_EXT,
|
|
744
|
+
FRONTX_MFE_ENTRY_MF,
|
|
745
|
+
FRONTX_OVERLAY_DOMAIN,
|
|
746
|
+
FRONTX_POPUP_DOMAIN,
|
|
747
|
+
FRONTX_SCREEN_DOMAIN,
|
|
748
|
+
FRONTX_SCREEN_EXTENSION_TYPE,
|
|
749
|
+
FRONTX_SHARED_PROPERTY_LANGUAGE,
|
|
750
|
+
FRONTX_SHARED_PROPERTY_THEME,
|
|
751
|
+
FRONTX_SIDEBAR_DOMAIN,
|
|
752
|
+
HAI3Context,
|
|
753
|
+
HAI3Provider,
|
|
754
|
+
I18nRegistry,
|
|
755
|
+
I18nRegistryImpl,
|
|
756
|
+
LAYOUT_SLICE_NAME,
|
|
757
|
+
Language,
|
|
758
|
+
LanguageDisplayMode,
|
|
759
|
+
LayoutDomain,
|
|
760
|
+
MOCK_PLUGIN,
|
|
761
|
+
MfeBridgeFactory,
|
|
762
|
+
MfeContext,
|
|
763
|
+
MfeHandler,
|
|
764
|
+
MfeHandlerMF,
|
|
765
|
+
MfeProvider,
|
|
766
|
+
MockEventSource,
|
|
767
|
+
MockEvents,
|
|
768
|
+
RefContainerProvider,
|
|
769
|
+
RestMockPlugin,
|
|
770
|
+
RestPlugin,
|
|
771
|
+
RestPluginWithConfig,
|
|
772
|
+
RestProtocol,
|
|
773
|
+
SUPPORTED_LANGUAGES,
|
|
774
|
+
ScreensetsRegistry,
|
|
775
|
+
ScreensetsRegistryFactory,
|
|
776
|
+
SseMockPlugin,
|
|
777
|
+
SsePlugin,
|
|
778
|
+
SsePluginWithConfig,
|
|
779
|
+
SseProtocol,
|
|
780
|
+
TENANT_SLICE_NAME,
|
|
781
|
+
TenantEvents,
|
|
782
|
+
TextDirection,
|
|
783
|
+
apiRegistry,
|
|
784
|
+
changeTenant,
|
|
785
|
+
clearActiveScreen,
|
|
786
|
+
clearTenant,
|
|
787
|
+
clearTenantAction,
|
|
788
|
+
clearUser,
|
|
789
|
+
closeAllPopups,
|
|
790
|
+
closePopup,
|
|
791
|
+
closeTopPopup,
|
|
792
|
+
createHAI3,
|
|
793
|
+
createHAI3App,
|
|
794
|
+
createI18nRegistry,
|
|
795
|
+
createShadowRoot,
|
|
796
|
+
createSlice,
|
|
797
|
+
createStore,
|
|
798
|
+
createThemeRegistry,
|
|
799
|
+
effects,
|
|
800
|
+
eventBus,
|
|
801
|
+
extensionScreenSchema,
|
|
802
|
+
extractGtsPackage,
|
|
803
|
+
footerActions,
|
|
804
|
+
footerSlice,
|
|
805
|
+
getLanguageMetadata,
|
|
806
|
+
getStore,
|
|
807
|
+
gtsPlugin,
|
|
808
|
+
hasSlice,
|
|
809
|
+
headerActions,
|
|
810
|
+
headerSlice,
|
|
811
|
+
hideOverlay,
|
|
812
|
+
i18n,
|
|
813
|
+
i18nRegistry,
|
|
814
|
+
initMockEffects,
|
|
815
|
+
initTenantEffects,
|
|
816
|
+
injectCssVariables,
|
|
817
|
+
isMockPlugin,
|
|
818
|
+
isRestShortCircuit,
|
|
819
|
+
isShortCircuit,
|
|
820
|
+
isSseShortCircuit,
|
|
821
|
+
languageSchema,
|
|
822
|
+
layout,
|
|
823
|
+
layoutDomainReducers,
|
|
824
|
+
layoutReducer,
|
|
825
|
+
loadExtension,
|
|
826
|
+
menuActions,
|
|
827
|
+
menuSlice,
|
|
828
|
+
microfrontends,
|
|
829
|
+
mock,
|
|
830
|
+
mockActions,
|
|
831
|
+
mockSlice,
|
|
832
|
+
mountExtension,
|
|
833
|
+
navigateTo,
|
|
834
|
+
openPopup,
|
|
835
|
+
overlayActions,
|
|
836
|
+
overlayDomain,
|
|
837
|
+
overlaySlice,
|
|
838
|
+
popupActions,
|
|
839
|
+
popupDomain,
|
|
840
|
+
popupSlice,
|
|
841
|
+
presets,
|
|
842
|
+
registerExtension,
|
|
843
|
+
registerSlice,
|
|
844
|
+
screenActions,
|
|
845
|
+
screenDomain,
|
|
846
|
+
screenSlice,
|
|
847
|
+
screensets,
|
|
848
|
+
screensetsRegistryFactory,
|
|
849
|
+
selectExtensionError,
|
|
850
|
+
selectExtensionState,
|
|
851
|
+
selectRegisteredExtensions,
|
|
852
|
+
setActiveScreen,
|
|
853
|
+
setFooterConfig,
|
|
854
|
+
setFooterVisible,
|
|
855
|
+
setHeaderLoading,
|
|
856
|
+
setMenuCollapsed,
|
|
857
|
+
setMenuConfig,
|
|
858
|
+
setMenuItems,
|
|
859
|
+
setMenuVisible,
|
|
860
|
+
setMockEnabled,
|
|
861
|
+
setOverlayVisible,
|
|
862
|
+
setScreenLoading,
|
|
863
|
+
setSidebarCollapsed,
|
|
864
|
+
setSidebarConfig,
|
|
865
|
+
setSidebarContent,
|
|
866
|
+
setSidebarPosition,
|
|
867
|
+
setSidebarTitle,
|
|
868
|
+
setSidebarVisible,
|
|
869
|
+
setSidebarWidth,
|
|
870
|
+
setTenant,
|
|
871
|
+
setTenantLoading,
|
|
872
|
+
setTenantLoadingState,
|
|
873
|
+
setUser,
|
|
874
|
+
showOverlay,
|
|
875
|
+
sidebarActions,
|
|
876
|
+
sidebarDomain,
|
|
877
|
+
sidebarSlice,
|
|
878
|
+
tenantActions,
|
|
879
|
+
tenantReducer,
|
|
880
|
+
tenantSlice,
|
|
881
|
+
themeSchema,
|
|
882
|
+
themes,
|
|
883
|
+
toggleMenu,
|
|
884
|
+
toggleMockMode,
|
|
885
|
+
toggleSidebar,
|
|
886
|
+
unmountExtension,
|
|
887
|
+
unregisterExtension,
|
|
888
|
+
useActivePackage,
|
|
889
|
+
useAppDispatch,
|
|
890
|
+
useAppSelector,
|
|
891
|
+
useDomainExtensions,
|
|
892
|
+
useFormatters,
|
|
893
|
+
useHAI3,
|
|
894
|
+
useHostAction,
|
|
895
|
+
useMfeBridge,
|
|
896
|
+
useMfeContext,
|
|
897
|
+
useRegisteredPackages,
|
|
898
|
+
useScreenTranslations,
|
|
899
|
+
useSharedProperty,
|
|
900
|
+
useTheme,
|
|
901
|
+
useTranslation
|
|
902
|
+
});
|
|
903
|
+
//# sourceMappingURL=index.cjs.map
|