@kolkrabbi/design-editor 0.48.0 → 0.49.1

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 CHANGED
@@ -47,6 +47,24 @@ The editor mounts wherever you place it and owns no route — it runs on an
47
47
  internal `MemoryRouter` and never touches the host's URL bar or
48
48
  `document.title`.
49
49
 
50
+ ## Kolbox pages
51
+
52
+ `@kolkrabbi/design-editor/kolbox-pages` exports `{ Home, Library }`, the kolbox style's file browser and library.
53
+ `<DesignEditor variant="kolbox" />` owns no Home or Library of its own; a host hands these in as `pages`:
54
+
55
+ ```jsx
56
+ import { DesignEditor } from '@kolkrabbi/design-editor'
57
+ import { Home, Library } from '@kolkrabbi/design-editor/kolbox-pages'
58
+ import '@kolkrabbi/design-editor/style.css'
59
+ import '@kolkrabbi/design-editor/kolbox.css'
60
+
61
+ <DesignEditor variant="kolbox" mediaClient={client} account={account}
62
+ pages={{ '/home': Home, '/library': Library }} />
63
+ ```
64
+
65
+ They read the editor's own file library, the `mediaClient` and the `account` the editor was given, so the host passes
66
+ nothing else. Their classes are in `kolbox.css`.
67
+
50
68
  ## Host requirements
51
69
 
52
70
  | Path | Serve | Why |
@@ -1,5 +1,5 @@
1
1
  import { d as e, f as t, g as n, o as r } from "./__vite-browser-external-y2xWjzgx.js";
2
- import { D as i, L as a, j as o } from "./rolls-Cnu6g8th.js";
2
+ import { D as i, L as a, j as o } from "./rolls-ZToBSscx.js";
3
3
  import { ParamBindDot as s } from "@kolkrabbi/kol-component";
4
4
  import { useEffect as c, useState as l } from "react";
5
5
  import { jsx as u } from "react/jsx-runtime";