@commercetools-demo/puck-content-manager 0.2.0 → 0.3.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
@@ -2,7 +2,7 @@ import React, { ReactNode } from 'react';
2
2
  import { PuckContentListItem, PuckData } from '@commercetools-demo/puck-types';
3
3
  import { Config } from '@measured/puck';
4
4
 
5
- interface ContentManagerProps {
5
+ interface ContentManagerListProps {
6
6
  baseURL: string;
7
7
  projectKey: string;
8
8
  businessUnitKey: string;
@@ -10,7 +10,7 @@ interface ContentManagerProps {
10
10
  defaultContentType?: string;
11
11
  onEdit: (item: PuckContentListItem) => void;
12
12
  }
13
- declare const ContentManager: React.FC<ContentManagerProps>;
13
+ declare const ContentManagerList: React.FC<ContentManagerListProps>;
14
14
 
15
15
  interface ContentEditorProps {
16
16
  baseURL: string;
@@ -26,19 +26,19 @@ interface ContentEditorProps {
26
26
  }
27
27
  declare const ContentEditor: React.FC<ContentEditorProps>;
28
28
 
29
- interface ContentManagerRouterProps {
29
+ interface ContentManagerProps {
30
30
  /** URL path where this manager is mounted, e.g. "/content" — used as router basename */
31
31
  parentUrl: string;
32
32
  baseURL: string;
33
33
  projectKey: string;
34
34
  businessUnitKey: string;
35
35
  jwtToken: string;
36
- /** Puck component config — must match what's used in the renderer */
37
- config: Config;
36
+ /** Puck component config — must match what's used in the renderer. Defaults to defaultPuckConfig. */
37
+ config?: Config;
38
38
  defaultContentType?: string;
39
39
  /** Optional element rendered before the breadcrumb in the editor header */
40
40
  backButton?: ReactNode;
41
41
  }
42
- declare const ContentManagerRouter: React.FC<ContentManagerRouterProps>;
42
+ declare const ContentManager: React.FC<ContentManagerProps>;
43
43
 
44
- export { ContentEditor, type ContentEditorProps, ContentManager, type ContentManagerProps, ContentManagerRouter, type ContentManagerRouterProps };
44
+ export { ContentEditor, type ContentEditorProps, ContentManager, ContentManagerList, type ContentManagerListProps, type ContentManagerProps };
package/dist/index.d.ts CHANGED
@@ -2,7 +2,7 @@ import React, { ReactNode } from 'react';
2
2
  import { PuckContentListItem, PuckData } from '@commercetools-demo/puck-types';
3
3
  import { Config } from '@measured/puck';
4
4
 
5
- interface ContentManagerProps {
5
+ interface ContentManagerListProps {
6
6
  baseURL: string;
7
7
  projectKey: string;
8
8
  businessUnitKey: string;
@@ -10,7 +10,7 @@ interface ContentManagerProps {
10
10
  defaultContentType?: string;
11
11
  onEdit: (item: PuckContentListItem) => void;
12
12
  }
13
- declare const ContentManager: React.FC<ContentManagerProps>;
13
+ declare const ContentManagerList: React.FC<ContentManagerListProps>;
14
14
 
15
15
  interface ContentEditorProps {
16
16
  baseURL: string;
@@ -26,19 +26,19 @@ interface ContentEditorProps {
26
26
  }
27
27
  declare const ContentEditor: React.FC<ContentEditorProps>;
28
28
 
29
- interface ContentManagerRouterProps {
29
+ interface ContentManagerProps {
30
30
  /** URL path where this manager is mounted, e.g. "/content" — used as router basename */
31
31
  parentUrl: string;
32
32
  baseURL: string;
33
33
  projectKey: string;
34
34
  businessUnitKey: string;
35
35
  jwtToken: string;
36
- /** Puck component config — must match what's used in the renderer */
37
- config: Config;
36
+ /** Puck component config — must match what's used in the renderer. Defaults to defaultPuckConfig. */
37
+ config?: Config;
38
38
  defaultContentType?: string;
39
39
  /** Optional element rendered before the breadcrumb in the editor header */
40
40
  backButton?: ReactNode;
41
41
  }
42
- declare const ContentManagerRouter: React.FC<ContentManagerRouterProps>;
42
+ declare const ContentManager: React.FC<ContentManagerProps>;
43
43
 
44
- export { ContentEditor, type ContentEditorProps, ContentManager, type ContentManagerProps, ContentManagerRouter, type ContentManagerRouterProps };
44
+ export { ContentEditor, type ContentEditorProps, ContentManager, ContentManagerList, type ContentManagerListProps, type ContentManagerProps };