@commercetools-demo/puck-content-manager 0.2.1 → 0.3.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/dist/index.d.mts +7 -7
- package/dist/index.d.ts +7 -7
- package/dist/index.js +246 -408
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +264 -409
- package/dist/index.mjs.map +1 -1
- package/package.json +8 -5
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
42
|
+
declare const ContentManager: React.FC<ContentManagerProps>;
|
|
43
43
|
|
|
44
|
-
export { ContentEditor, type ContentEditorProps, ContentManager, type
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
42
|
+
declare const ContentManager: React.FC<ContentManagerProps>;
|
|
43
43
|
|
|
44
|
-
export { ContentEditor, type ContentEditorProps, ContentManager, type
|
|
44
|
+
export { ContentEditor, type ContentEditorProps, ContentManager, ContentManagerList, type ContentManagerListProps, type ContentManagerProps };
|