@kolkrabbi/design-editor 0.48.0 → 0.49.0
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 +18 -0
- package/dist/{BindDot-Cx-M0iQt.js → BindDot-BAAc-KSs.js} +1 -1
- package/dist/{KolboxView-BjYfn_tl.js → KolboxView-DxcGz6MC.js} +3137 -5182
- package/dist/{Timeline-CRr43b4B.js → Timeline-BH3BF2m4.js} +2 -2
- package/dist/{TreePicker-DXsAlHK6.js → TreePicker-RImJ6I_0.js} +11 -11
- package/dist/{core-BbKj9Svq.js → core-DyfKZlBI.js} +2213 -2185
- package/dist/core.js +5 -5
- package/dist/design-editor.css +1 -1
- package/dist/design-editor.js +6 -6
- package/dist/{effectCategories-wHY9ih8L.js → effectCategories-B5jhXEyy.js} +21 -21
- package/dist/effects-BAwNQ8Kj.js +447 -0
- package/dist/effects.js +1 -1
- package/dist/{generators-BtRZ3Stj.js → generators-OCg5XjTX.js} +838 -838
- package/dist/generators.js +1 -1
- package/dist/{host-II9SeVCH.js → host-DS-pAjP0.js} +2 -2
- package/dist/kolbox-pages.js +2218 -0
- package/dist/kolbox.css +1 -1
- package/dist/{morphStore-s-rjCe-y.js → morphStore-D6xiYiR_.js} +1 -1
- package/dist/{motion-CKtZAccJ.js → motion-p5pHH9_J.js} +95 -95
- package/dist/motion.js +1 -1
- package/dist/portable-Bs8ieXiu.js +2128 -0
- package/dist/{rolls-Cnu6g8th.js → rolls-ZToBSscx.js} +1 -1
- package/dist/{src-3UkpFoNW.js → src-DEx6Oh0D.js} +416 -416
- package/dist/{store-YIW6P2zN.js → store-BDAxvWTE.js} +1 -1
- package/dist/{useLayerEdit-W_Tf3adq.js → useLayerEdit-D6vwfIoB.js} +90 -90
- package/package.json +9 -6
- package/dist/effects-D7J0e5xl.js +0 -447
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-
|
|
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";
|