@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.
Files changed (37) hide show
  1. package/README.md +6 -0
  2. package/dist/{AppCanvasPage-BTmt8poT.d.ts → AppCanvasPage-BZ2mrKY4.d.ts} +3 -1
  3. package/dist/{AppCanvasPage-BsQrZ8q7.js → AppCanvasPage-DtWEvs_Y.js} +1065 -316
  4. package/dist/{CanvasComponentsFrame-C0Sf9RcC.js → CanvasComponentsFrame-CbgJJv-3.js} +1 -1
  5. package/dist/{ComponentGallery-DDSqnm9f.js → ComponentGallery-COqEqqN6.js} +2 -2
  6. package/dist/{Form-DmcByQts.d.ts → Form-DAtj2szV.d.ts} +1 -1
  7. package/dist/{Inputs-C0sUmuPv.d.ts → Inputs-C_6dVwC7.d.ts} +1 -1
  8. package/dist/{Table-BN2_J_Ne.js → Table-piX1SWvN.js} +54 -1
  9. package/dist/{UIConfigurator-C_2kgJtm.js → UIConfigurator-DekPXjv9.js} +1290 -406
  10. package/dist/config/app-canvas-tanstack.d.ts +1 -1
  11. package/dist/config/app-canvas-tanstack.js +1 -1
  12. package/dist/config/app-canvas.d.ts +2 -2
  13. package/dist/config/app-canvas.js +1 -1
  14. package/dist/config/ui-config.d.ts +1 -1
  15. package/dist/config/ui-configurator-vite.d.ts +9 -0
  16. package/dist/config/ui-configurator-vite.js +449 -10
  17. package/dist/config/ui-configurator.d.ts +14 -2
  18. package/dist/config/ui-configurator.js +2 -2
  19. package/dist/{configuration.context-qdjDwQJj.d.ts → configuration.context-3I7-wBII.d.ts} +4 -1
  20. package/dist/{dynamicInputs-DdcsSoYu.d.ts → dynamicInputs-R5i7AT_C.d.ts} +1 -1
  21. package/dist/index.d.ts +2 -2
  22. package/dist/index.js +3 -3
  23. package/dist/rhf/inputs.d.ts +1 -1
  24. package/dist/rhf.d.ts +2 -2
  25. package/dist/rhf.js +3 -3
  26. package/dist/styles/app-canvas.css +402 -18
  27. package/dist/styles/configurator.css +251 -92
  28. package/dist/{table.cva-D5oQ-QvA.js → table.cva-DlMT-zLD.js} +1 -54
  29. package/dist/tanstack/form.d.ts +1 -1
  30. package/dist/tanstack/inputs.d.ts +2 -2
  31. package/dist/tanstack/table.js +2 -2
  32. package/dist/tanstack.d.ts +4 -4
  33. package/dist/tanstack.js +3 -3
  34. package/dist/{uiConfig.context-BqKWd_MO.d.ts → uiConfig.context-BksnNQyw.d.ts} +1 -1
  35. package/dist/{useTableColumnConfig-6zn3zKl3.js → useTableColumnConfig-CNJ_ZvIN.js} +1 -1
  36. package/package.json +1 -1
  37. package/src/configurator/README.md +18 -1
@@ -74,4 +74,21 @@ The configurator window can be moved using the six-dot grip beside the preview s
74
74
 
75
75
  The pop-out control opens a separate browser window with `window.open`. It shares the provider state with the host application, so edits remain live in both windows. Docking or closing the pop-out returns the editor to the page and preserves the draft; Apply and Cancel close the pop-out. A blocked popup leaves the in-page editor open with retry guidance. The popup remembers its own size and screen position for the next pop-out; placement remains subject to browser window rules. The popup uses its browser window for resizing and switches to the compact Live preview tab below 800px.
76
76
 
77
- Minimize turns the configurator into a movable **Povio UI** floating launcher without discarding its draft. Click the launcher to restore the previous window mode, size and position; drag it or use the arrow keys to move it. A minimized pop-out reopens as a separate browser window. After Apply or Cancel, the launcher remains available to start a new editing session. Geometry is remembered for the mounted session, not across page reloads.
77
+ Drag the pill on the window's top edge (or the header) to move it; focus the pill and use the arrow keys to move it by keyboard. The close button (×) closes the configurator and keeps the live edits. Window geometry is remembered for the mounted session, not across page reloads.
78
+
79
+ ### Theme versions
80
+
81
+ The menu in the configurator's title row switches between named theme versions; **+** creates a copy of the selected version and the pencil renames or deletes it. Every edit is recorded in the selected version. With the `uiConfigurator` Vite plugin, versions save automatically to `povio.themes.json` in the app's Vite root (configure with `themeVersionsFile`, or disable with `themeVersionsFile: false`); without it, they stay in browser storage. No Git commands run.
82
+
83
+ **Apply theme** in the footer makes the repository match the selected version. Theme tokens go to the app's theme CSS (`themeFile`); component settings and variant overrides go to `ui-configuration.json` beside it (`configurationFile`, or `false` to disable). Only the files that differ are written, and the button is enabled only while one does. Theme versions keep full token values, so applying one never changes another's theme; component settings are stored as edits, so a version that leaves a setting alone follows the applied one.
84
+
85
+ Load the component settings in the app's root, layered over its code-level overrides:
86
+
87
+ ```tsx
88
+ import { resolveUIConfiguration } from "@povio/ui/ui-configurator";
89
+ import uiConfigurationFile from "@/styles/ui-configuration.json";
90
+
91
+ const uiConfiguration = resolveUIConfiguration(uiConfigurationFile, uiOverrides);
92
+ // <UIConfig.Provider config={uiConfiguration.config}>
93
+ // <UIOverrides.Provider config={uiConfiguration.overrides}>…
94
+ ```