@povio/ui 5.0.0-rc.7 → 5.0.0-rc.9
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/README.md +48 -0
- package/dist/AppCanvasPage--RG31Yyv.js +2421 -0
- package/dist/AppCanvasPage-BIFYeEeS.d.ts +80 -0
- package/dist/{ComponentGallery-Dp0kZVZM.js → ComponentGallery-C6exitZN.js} +1 -1
- package/dist/{Form-BJ12MjE-.d.ts → Form-DbEWnCKc.d.ts} +1 -1
- package/dist/{Inputs-DA73LmLc.d.ts → Inputs-O84btFJL.d.ts} +1 -1
- package/dist/UIConfigurator-BwLRfe-a.js +6704 -0
- package/dist/config/app-canvas-tanstack.d.ts +23 -0
- package/dist/config/app-canvas-tanstack.js +62 -0
- package/dist/config/app-canvas.d.ts +12 -0
- package/dist/config/app-canvas.js +2 -0
- package/dist/config/ui-config.d.ts +1 -1
- package/dist/config/ui-configurator.d.ts +1 -920
- package/dist/config/ui-configurator.js +2 -6430
- package/dist/configuration.context-f_FSPWhQ.d.ts +926 -0
- package/dist/{dynamicInputs-iP39lVKf.d.ts → dynamicInputs-ByVMnx4Z.d.ts} +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/rhf/inputs.d.ts +1 -1
- package/dist/rhf.d.ts +2 -2
- package/dist/styles/app-canvas.css +740 -0
- package/dist/styles/configurator.css +19 -5
- package/dist/tanstack/form.d.ts +1 -1
- package/dist/tanstack/inputs.d.ts +2 -2
- package/dist/tanstack.d.ts +4 -4
- package/package.json +16 -1
- package/dist/token-classes-Bfcx0get.js +0 -163
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { n as AppCanvasPage, r as AppCanvasPageProps, t as APP_CANVAS_PATH } from "../AppCanvasPage-BIFYeEeS.js";
|
|
2
|
+
import { AnyRoute } from "@tanstack/react-router";
|
|
3
|
+
//#region src/app-canvas/tanstack.d.ts
|
|
4
|
+
interface AppCanvasRouteOptions {
|
|
5
|
+
/** Explicit access gate. For a development-only route, pass import.meta.env.DEV. */
|
|
6
|
+
enabled: boolean | (() => boolean);
|
|
7
|
+
canvas?: Omit<AppCanvasPageProps, "router" | "canvasPath">;
|
|
8
|
+
}
|
|
9
|
+
/** Use with createFileRoute('/_canvas') for file-based TanStack Router apps. */
|
|
10
|
+
declare function appCanvasRouteOptions({ enabled, canvas }: AppCanvasRouteOptions): {
|
|
11
|
+
beforeLoad: () => void;
|
|
12
|
+
component: () => import("react").JSX.Element;
|
|
13
|
+
};
|
|
14
|
+
/** Add this child to the existing root route before creating a code-based router. */
|
|
15
|
+
declare function createAppCanvasRoute<TParent extends AnyRoute>({ getParentRoute, ...options }: AppCanvasRouteOptions & {
|
|
16
|
+
getParentRoute: () => TParent;
|
|
17
|
+
}): import("@tanstack/react-router").Route<unknown, TParent, "/_canvas", import("@tanstack/router-core").ResolveFullPath<TParent, "/_canvas", TParent["fullPath"] extends (infer T) ? T extends TParent["fullPath"] ? T extends "__root__" ? "/_canvas" : `${T}//_canvas` extends "/" ? "/" : `/${import("@tanstack/router-core").TrimPathLeft<`${import("@tanstack/router-core").TrimPathRight<T>}/_canvas`>}` : never : never>, string, import("@tanstack/router-core").ResolveId<TParent, string, "/_canvas">, undefined, import("@tanstack/router-core").ResolveParams<"/_canvas">, import("@tanstack/router-core").AnyContext, import("@tanstack/router-core").AnyContext, () => void, {}, undefined, unknown, unknown, unknown, unknown, undefined>;
|
|
18
|
+
/** Mount once under the existing router and UIConfigurationProvider, beside Outlet. */
|
|
19
|
+
declare function AppCanvasBridge(): import("react").JSX.Element;
|
|
20
|
+
/** Hide existing configurator launchers on the canvas page; its editor is already included. */
|
|
21
|
+
declare function useIsAppCanvasPage(): boolean;
|
|
22
|
+
//#endregion
|
|
23
|
+
export { APP_CANVAS_PATH, AppCanvasBridge, AppCanvasPage, type AppCanvasRouteOptions, appCanvasRouteOptions, createAppCanvasRoute, useIsAppCanvasPage };
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { n as AppCanvasPage, r as AppCanvasFrameBridge, t as APP_CANVAS_PATH } from "../AppCanvasPage--RG31Yyv.js";
|
|
2
|
+
import { c } from "react/compiler-runtime";
|
|
3
|
+
import { jsx } from "react/jsx-runtime";
|
|
4
|
+
import { createRoute, notFound, useRouter, useRouterState } from "@tanstack/react-router";
|
|
5
|
+
//#region src/app-canvas/tanstack.tsx
|
|
6
|
+
/** Use with createFileRoute('/_canvas') for file-based TanStack Router apps. */
|
|
7
|
+
function appCanvasRouteOptions({ enabled, canvas }) {
|
|
8
|
+
return {
|
|
9
|
+
beforeLoad: () => {
|
|
10
|
+
if (!(typeof enabled === "function" ? enabled() : enabled)) throw notFound();
|
|
11
|
+
},
|
|
12
|
+
component: function CanvasRoutePage() {
|
|
13
|
+
return /* @__PURE__ */ jsx(AppCanvasPage, {
|
|
14
|
+
...canvas,
|
|
15
|
+
router: useRouter()
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
/** Add this child to the existing root route before creating a code-based router. */
|
|
21
|
+
function createAppCanvasRoute({ getParentRoute, ...options }) {
|
|
22
|
+
return createRoute({
|
|
23
|
+
getParentRoute,
|
|
24
|
+
path: APP_CANVAS_PATH,
|
|
25
|
+
...appCanvasRouteOptions(options)
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
/** Mount once under the existing router and UIConfigurationProvider, beside Outlet. */
|
|
29
|
+
function AppCanvasBridge() {
|
|
30
|
+
const $ = c(3);
|
|
31
|
+
let t0;
|
|
32
|
+
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
33
|
+
t0 = { select: _temp };
|
|
34
|
+
$[0] = t0;
|
|
35
|
+
} else t0 = $[0];
|
|
36
|
+
const href = useRouterState(t0);
|
|
37
|
+
let t1;
|
|
38
|
+
if ($[1] !== href) {
|
|
39
|
+
t1 = /* @__PURE__ */ jsx(AppCanvasFrameBridge, { href });
|
|
40
|
+
$[1] = href;
|
|
41
|
+
$[2] = t1;
|
|
42
|
+
} else t1 = $[2];
|
|
43
|
+
return t1;
|
|
44
|
+
}
|
|
45
|
+
/** Hide existing configurator launchers on the canvas page; its editor is already included. */
|
|
46
|
+
function _temp(state) {
|
|
47
|
+
return state.location.href;
|
|
48
|
+
}
|
|
49
|
+
function useIsAppCanvasPage() {
|
|
50
|
+
const $ = c(1);
|
|
51
|
+
let t0;
|
|
52
|
+
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
53
|
+
t0 = { select: _temp2 };
|
|
54
|
+
$[0] = t0;
|
|
55
|
+
} else t0 = $[0];
|
|
56
|
+
return useRouterState(t0);
|
|
57
|
+
}
|
|
58
|
+
function _temp2(state) {
|
|
59
|
+
return state.location.pathname.replace(/\/$/, "") === APP_CANVAS_PATH;
|
|
60
|
+
}
|
|
61
|
+
//#endregion
|
|
62
|
+
export { APP_CANVAS_PATH, AppCanvasBridge, AppCanvasPage, appCanvasRouteOptions, createAppCanvasRoute, useIsAppCanvasPage };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { a as AppCanvasProps, c as CanvasPage, d as CanvasRouter, f as discoverCanvasPages, i as AppCanvas, l as CanvasPosition, n as AppCanvasPage, o as CanvasBreakpoint, p as layoutCanvasPages, r as AppCanvasPageProps, s as defaultCanvasBreakpoints, t as APP_CANVAS_PATH, u as CanvasRouteExample } from "../AppCanvasPage-BIFYeEeS.js";
|
|
2
|
+
import "../configuration.context-f_FSPWhQ.js";
|
|
3
|
+
//#region src/app-canvas/AppCanvasFrameBridge.d.ts
|
|
4
|
+
/** Mount once inside the application's existing UIConfigurationProvider. No separate app copy or theme fork. */
|
|
5
|
+
declare function AppCanvasFrameBridge({ href }: {
|
|
6
|
+
href?: string;
|
|
7
|
+
}): null;
|
|
8
|
+
//#endregion
|
|
9
|
+
//#region src/app-canvas/protocol.d.ts
|
|
10
|
+
declare const isAppCanvasFrame: () => boolean;
|
|
11
|
+
//#endregion
|
|
12
|
+
export { APP_CANVAS_PATH, AppCanvas, AppCanvasFrameBridge, AppCanvasPage, type AppCanvasPageProps, type AppCanvasProps, type CanvasBreakpoint, type CanvasPage, type CanvasPosition, type CanvasRouteExample, type CanvasRouter, defaultCanvasBreakpoints, discoverCanvasPages, isAppCanvasFrame, layoutCanvasPages };
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { a as defaultCanvasBreakpoints, c as layoutCanvasPages, i as AppCanvas, n as AppCanvasPage, o as isAppCanvasFrame, r as AppCanvasFrameBridge, s as discoverCanvasPages, t as APP_CANVAS_PATH } from "../AppCanvasPage--RG31Yyv.js";
|
|
2
|
+
export { APP_CANVAS_PATH, AppCanvas, AppCanvasFrameBridge, AppCanvasPage, defaultCanvasBreakpoints, discoverCanvasPages, isAppCanvasFrame, layoutCanvasPages };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { a as DateRangeResolvedValue, i as DateRangeRelativeOption } from "../DateRangePicker-Bfq-yDm7.js";
|
|
2
1
|
import { t as UIConfig } from "../uiConfig.context-DeBX2beU.js";
|
|
2
|
+
import { a as DateRangeResolvedValue, i as DateRangeRelativeOption } from "../DateRangePicker-Bfq-yDm7.js";
|
|
3
3
|
export { type DateRangeRelativeOption, type DateRangeResolvedValue, UIConfig };
|