xmlui 0.9.36 → 0.9.38
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/dist/lib/{apiInterceptorWorker-CWN1iwsH.mjs → apiInterceptorWorker-BWeLEiFb.mjs} +2 -1
- package/dist/lib/{index-BmTqBdiA.mjs → index-D7kFBKWN.mjs} +1227 -8792
- package/dist/lib/index-DCbaK7GI.mjs +17521 -0
- package/dist/lib/index.css +46 -47
- package/dist/lib/language-server-web-worker.mjs +1 -1
- package/dist/lib/language-server.mjs +1 -1
- package/dist/lib/{server-common-B7iKLsag.mjs → server-common-B1bqw3bO.mjs} +2549 -2465
- package/dist/lib/xmlui.d.ts +1 -1
- package/dist/lib/xmlui.mjs +16 -16
- package/dist/metadata/style.css +46 -47
- package/dist/metadata/xmlui-metadata.mjs +47 -32
- package/dist/metadata/xmlui-metadata.umd.js +47 -32
- package/dist/scripts/package.json +4 -4
- package/dist/scripts/src/components/Heading/Heading.js +1 -1
- package/dist/scripts/src/components/Heading/HeadingNative.js +11 -2
- package/dist/scripts/src/components/Markdown/Markdown.js +10 -3
- package/dist/scripts/src/components/Markdown/MarkdownNative.js +106 -49
- package/dist/scripts/src/components/NavGroup/NavGroup.js +1 -1
- package/dist/scripts/src/components/NestedApp/NestedAppNative.js +56 -16
- package/dist/scripts/src/components/Text/Text.js +1 -0
- package/dist/scripts/src/components-core/interception/apiInterceptorWorker.js +2 -1
- package/dist/scripts/src/components-core/loader/Loader.js +4 -4
- package/dist/scripts/src/components-core/rendering/AppWrapper.js +2 -1
- package/dist/standalone/xmlui-standalone.es.d.ts +1 -1
- package/dist/standalone/xmlui-standalone.umd.js +43046 -32149
- package/package.json +2 -2
|
@@ -40,9 +40,10 @@ const AppWrapper = ({ node, previewMode = false, routerBaseName: baseName = "",
|
|
|
40
40
|
const dynamicChildren = ((0, jsx_runtime_1.jsxs)(react_helmet_async_1.HelmetProvider, { children: [(0, jsx_runtime_1.jsx)(react_helmet_async_1.Helmet, { defaultTitle: siteName, titleTemplate: `%s | ${siteName}` }), (0, jsx_runtime_1.jsxs)(LoggerContext_1.LoggerProvider, { children: [(0, jsx_runtime_1.jsx)(LoggerInitializer_1.LoggerInitializer, {}), (0, jsx_runtime_1.jsx)(IconProvider_1.IconProvider, { children: (0, jsx_runtime_1.jsx)(ThemeProvider_1.default, { resourceMap: resourceMap, themes: contributes.themes, defaultTheme: defaultTheme, defaultTone: defaultTone, resources: resources, children: (0, jsx_runtime_1.jsx)(InspectorContext_1.InspectorProvider, { sources: sources, projectCompilation: projectCompilation, mockApi: globalProps === null || globalProps === void 0 ? void 0 : globalProps.demoMockApi, children: (0, jsx_runtime_1.jsx)(ConfirmationModalContextProvider_1.ConfirmationModalContextProvider, { children: (0, jsx_runtime_1.jsx)(AppContent_1.AppContent, { rootContainer: node, routerBaseName: baseName, globalProps: globalProps, standalone: standalone, decorateComponentsWithTestId: decorateComponentsWithTestId, debugEnabled: debugEnabled, trackContainerHeight: trackContainerHeight, children: children }) }) }) }) })] })] }));
|
|
41
41
|
// --- Select the router type for the app
|
|
42
42
|
const Router = previewMode ? react_router_dom_1.MemoryRouter : useHashBasedRouting ? react_router_dom_1.HashRouter : react_router_dom_1.BrowserRouter;
|
|
43
|
+
const shouldSkipClientRouter = previewMode ? false : (typeof window === "undefined" || process.env.VITE_REMIX);
|
|
43
44
|
return (
|
|
44
45
|
// <React.StrictMode>
|
|
45
|
-
(0, jsx_runtime_1.jsx)(ErrorBoundary_1.ErrorBoundary, { node: node, location: "root-outer", children: (0, jsx_runtime_1.jsxs)(react_query_1.QueryClientProvider, { client: AppRoot_1.queryClient, children: [
|
|
46
|
+
(0, jsx_runtime_1.jsx)(ErrorBoundary_1.ErrorBoundary, { node: node, location: "root-outer", children: (0, jsx_runtime_1.jsxs)(react_query_1.QueryClientProvider, { client: AppRoot_1.queryClient, children: [!!shouldSkipClientRouter && dynamicChildren, !shouldSkipClientRouter && ((0, jsx_runtime_1.jsx)(Router, { basename: Router === react_router_dom_1.HashRouter ? undefined : baseName, children: dynamicChildren }))] }) })
|
|
46
47
|
// </React.StrictMode>
|
|
47
48
|
);
|
|
48
49
|
};
|
|
@@ -1407,7 +1407,7 @@ declare type Message = ValueOrFunction<Renderable, Toast>;
|
|
|
1407
1407
|
*/
|
|
1408
1408
|
declare type ModuleErrors = Record<string, ScriptParserErrorMessage[]>;
|
|
1409
1409
|
|
|
1410
|
-
declare function NestedApp({ api, app, components, config, activeTheme, activeTone, title, height, allowPlaygroundPopup, withFrame }: NestedAppProps): JSX_2.Element;
|
|
1410
|
+
declare function NestedApp({ api, app, components, config, activeTheme, activeTone, title, height, allowPlaygroundPopup, withFrame, }: NestedAppProps): JSX_2.Element;
|
|
1411
1411
|
|
|
1412
1412
|
declare type NestedAppProps = {
|
|
1413
1413
|
api?: any;
|