@puckeditor/plugin-pages 0.10.0-canary.e48cba8c → 0.10.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/dist/index.d.mts CHANGED
@@ -9,6 +9,11 @@ type RequestOptions = {
9
9
  headers?: HeadersInit;
10
10
  credentials?: RequestCredentials;
11
11
  };
12
+ /**
13
+ * Options for `createPagesPlugin`.
14
+ *
15
+ * @experimental
16
+ */
12
17
  type PagePluginOptions = {
13
18
  /** Where `puckHandler` serves the pages API. Defaults to `/api/puck/pages`. */
14
19
  host?: string;
@@ -23,6 +28,14 @@ type PagePluginOptions = {
23
28
  prepareRequest?: (opts: RequestOptions) => RequestOptions | Promise<RequestOptions>;
24
29
  };
25
30
 
31
+ /**
32
+ * Create the pages plugin, for creating, editing and publishing Puck Cloud pages.
33
+ *
34
+ * @param opts The pages API host, site URL, first page and request options.
35
+ * @returns The plugin.
36
+ *
37
+ * @experimental
38
+ */
26
39
  declare function createPagesPlugin(opts?: PagePluginOptions): {
27
40
  label: string;
28
41
  name: string;
package/dist/index.d.ts CHANGED
@@ -9,6 +9,11 @@ type RequestOptions = {
9
9
  headers?: HeadersInit;
10
10
  credentials?: RequestCredentials;
11
11
  };
12
+ /**
13
+ * Options for `createPagesPlugin`.
14
+ *
15
+ * @experimental
16
+ */
12
17
  type PagePluginOptions = {
13
18
  /** Where `puckHandler` serves the pages API. Defaults to `/api/puck/pages`. */
14
19
  host?: string;
@@ -23,6 +28,14 @@ type PagePluginOptions = {
23
28
  prepareRequest?: (opts: RequestOptions) => RequestOptions | Promise<RequestOptions>;
24
29
  };
25
30
 
31
+ /**
32
+ * Create the pages plugin, for creating, editing and publishing Puck Cloud pages.
33
+ *
34
+ * @param opts The pages API host, site URL, first page and request options.
35
+ * @returns The plugin.
36
+ *
37
+ * @experimental
38
+ */
26
39
  declare function createPagesPlugin(opts?: PagePluginOptions): {
27
40
  label: string;
28
41
  name: string;