@povio/ui 5.0.0-rc.11 → 5.0.0-rc.13
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 +6 -0
- package/dist/{AppCanvasPage-BTmt8poT.d.ts → AppCanvasPage-BZ2mrKY4.d.ts} +3 -1
- package/dist/{AppCanvasPage-BsQrZ8q7.js → AppCanvasPage-DtWEvs_Y.js} +1065 -316
- package/dist/{CanvasComponentsFrame-C0Sf9RcC.js → CanvasComponentsFrame-CbgJJv-3.js} +1 -1
- package/dist/{ComponentGallery-DDSqnm9f.js → ComponentGallery-COqEqqN6.js} +2 -2
- package/dist/{Form-DmcByQts.d.ts → Form-DAtj2szV.d.ts} +1 -1
- package/dist/{Inputs-C0sUmuPv.d.ts → Inputs-C_6dVwC7.d.ts} +1 -1
- package/dist/{Table-BN2_J_Ne.js → Table-piX1SWvN.js} +54 -1
- package/dist/{UIConfigurator-C_2kgJtm.js → UIConfigurator-DekPXjv9.js} +1290 -406
- package/dist/config/app-canvas-tanstack.d.ts +1 -1
- package/dist/config/app-canvas-tanstack.js +1 -1
- package/dist/config/app-canvas.d.ts +2 -2
- package/dist/config/app-canvas.js +1 -1
- package/dist/config/ui-config.d.ts +1 -1
- package/dist/config/ui-configurator-vite.d.ts +9 -0
- package/dist/config/ui-configurator-vite.js +449 -10
- package/dist/config/ui-configurator.d.ts +14 -2
- package/dist/config/ui-configurator.js +2 -2
- package/dist/{configuration.context-qdjDwQJj.d.ts → configuration.context-3I7-wBII.d.ts} +4 -1
- package/dist/{dynamicInputs-DdcsSoYu.d.ts → dynamicInputs-R5i7AT_C.d.ts} +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +3 -3
- package/dist/rhf/inputs.d.ts +1 -1
- package/dist/rhf.d.ts +2 -2
- package/dist/rhf.js +3 -3
- package/dist/styles/app-canvas.css +402 -18
- package/dist/styles/configurator.css +251 -92
- package/dist/{table.cva-D5oQ-QvA.js → table.cva-DlMT-zLD.js} +1 -54
- package/dist/tanstack/form.d.ts +1 -1
- package/dist/tanstack/inputs.d.ts +2 -2
- package/dist/tanstack/table.js +2 -2
- package/dist/tanstack.d.ts +4 -4
- package/dist/tanstack.js +3 -3
- package/dist/{uiConfig.context-BqKWd_MO.d.ts → uiConfig.context-BksnNQyw.d.ts} +1 -1
- package/dist/{useTableColumnConfig-6zn3zKl3.js → useTableColumnConfig-CNJ_ZvIN.js} +1 -1
- package/package.json +1 -1
- package/src/configurator/README.md +18 -1
package/README.md
CHANGED
|
@@ -316,3 +316,9 @@ const routeTree = rootRoute.addChildren([homeRoute, projectsRoute, canvasRoute])
|
|
|
316
316
|
```
|
|
317
317
|
|
|
318
318
|
Then open `/_canvas` directly. `enabled` accepts a boolean or a synchronous predicate; false produces a not-found route. Apply your existing access policy if enabling it outside development. Normal page authentication and loaders still run inside the frames. The canvas excludes its own pathname, and dynamic pages without example parameters remain explicitly unresolved. The lower-level `AppCanvasPage` and `AppCanvas` components remain available from `@povio/ui/app-canvas` for custom integrations.
|
|
319
|
+
|
|
320
|
+
### Canvas workspaces
|
|
321
|
+
|
|
322
|
+
The canvas supports named workspaces, enabled pages per workspace, and independent positions per breakpoint. The selected page's HTML layers expand directly beneath its row in the sidebar.
|
|
323
|
+
|
|
324
|
+
The existing `uiConfigurator` Vite plugin also saves canvas settings to `povio.canvas.json` in the app root. Configure an alternate file with `uiConfigurator({ canvasFile: "povio.canvas.json" })`, or disable this with `canvasFile: false`. No Git commands run: review and commit this file through the normal repository workflow. Conflicting writes from different sessions are rejected instead of silently overwriting settings. Without this development-server connection, settings stay in browser storage; export/import remains available. Theme versions from the Configure UI panel save separately to `povio.themes.json` (`themeVersionsFile` option).
|
|
@@ -63,12 +63,14 @@ interface AppCanvasProps {
|
|
|
63
63
|
excludePaths?: string[];
|
|
64
64
|
breakpoints?: CanvasBreakpoint[];
|
|
65
65
|
storageKey?: string;
|
|
66
|
+
/** Save through the development server when repository storage is available. */
|
|
67
|
+
repositoryStorage?: boolean;
|
|
66
68
|
frameUrl?: (page: CanvasPage) => string;
|
|
67
69
|
/** URL of a frame that renders one component gallery section; enables the Components artboards. */
|
|
68
70
|
componentsHref?: (group: string) => string;
|
|
69
71
|
}
|
|
70
72
|
/** Live route artboards. The camera transforms only the canvas, never the iframe viewport width. */
|
|
71
|
-
declare function AppCanvas({ router, examples, exclude, excludePaths, breakpoints, storageKey, frameUrl, componentsHref }: AppCanvasProps): import("react").JSX.Element;
|
|
73
|
+
declare function AppCanvas({ router, examples, exclude, excludePaths, breakpoints, storageKey, frameUrl, componentsHref, repositoryStorage }: AppCanvasProps): import("react").JSX.Element;
|
|
72
74
|
//#endregion
|
|
73
75
|
//#region src/app-canvas/AppCanvasPage.d.ts
|
|
74
76
|
declare const APP_CANVAS_PATH = "/_canvas";
|