@goodfellow-cms/admin 0.3.0 → 0.5.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 +1 -1
- package/dist/editor.d.ts +18 -0
- package/dist/editor.js +1780 -0
- package/dist/entry-values-ocbalc9U.js +3952 -0
- package/dist/index.d.ts +470 -23
- package/dist/index.js +6485 -6036
- package/package.json +12 -7
- package/styles.css +510 -7
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
The admin panel: the visual editor for a site's pages, collections, media, header and footer, and settings, which publishes to the site's repository from the browser.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
Its editor is built with each site's own config, so it always has the site's blocks, and runs them in frames sandboxed away from the admin panel's page, which signs in and publishes: `goodfellow build` adds the page at `/admin` and the editor at `/admin/editor/`, and Next.js sites render `GoodfellowAdmin` and `GoodfellowEditor` from `@goodfellow-cms/next` there.
|
|
6
6
|
|
|
7
7
|
[Goodfellow](https://github.com/goodfellow-cms/goodfellow-cms) is a website builder for people who aren't developers, with no server or database: pages are files in your own GitHub or GitLab repository, edited in a visual editor built on [Puck](https://puckeditor.com). To start a new site, run `npm create goodfellow@latest my-site`. See the [documentation](https://goodfellow-cms.github.io/goodfellow-cms/) for everything else.
|
|
8
8
|
|
package/dist/editor.d.ts
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { GoodfellowConfig } from "@goodfellow-cms/core";
|
|
2
|
+
//#region src/frame/app.d.ts
|
|
3
|
+
/**
|
|
4
|
+
* Starts the site's frame in `element`: tells the admin panel's page it's
|
|
5
|
+
* ready, and waits for its port. Only the page that made the frame can answer,
|
|
6
|
+
* since a sandboxed frame's parent is the only window that can reach it.
|
|
7
|
+
*/
|
|
8
|
+
interface EditorFrameOptions {
|
|
9
|
+
/**
|
|
10
|
+
* Where the frame loads `@tailwindcss/browser` from, where the admin
|
|
11
|
+
* panel's own address for it can't be loaded from the frame, such as a
|
|
12
|
+
* `blob:` address only the admin panel's page can read.
|
|
13
|
+
*/
|
|
14
|
+
tailwindBrowserUrl?: string;
|
|
15
|
+
}
|
|
16
|
+
export declare function mountEditorFrame(config: GoodfellowConfig, element?: Element, options?: EditorFrameOptions): void;
|
|
17
|
+
//#endregion
|
|
18
|
+
export type { EditorFrameOptions };
|