@enyxs/wikex-components 0.8.16 → 0.8.17
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 +22 -2
- package/dist/index.d.ts +22 -2
- package/dist/index.js +174 -74
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +157 -55
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import * as react from 'react';
|
|
1
2
|
import { ComponentType } from 'react';
|
|
2
3
|
|
|
3
4
|
type CmsFieldType = "text" | "textarea" | "richText" | "image" | "link" | "number" | "select" | "list";
|
|
@@ -42,12 +43,21 @@ type CmsRendererProps = {
|
|
|
42
43
|
editable?: boolean;
|
|
43
44
|
readOnlyFields?: string[];
|
|
44
45
|
onChange?: (field: string, value: string) => void;
|
|
46
|
+
onSelectText?: (target: CmsTextTarget) => void;
|
|
47
|
+
selectedTextField?: string;
|
|
45
48
|
onImageRequest?: (field: string, listItem?: {
|
|
46
49
|
index: number;
|
|
47
50
|
key: string;
|
|
48
51
|
}) => void;
|
|
49
52
|
onAddListItem?: () => void;
|
|
50
53
|
};
|
|
54
|
+
type CmsTextTarget = {
|
|
55
|
+
field: string;
|
|
56
|
+
listField?: string;
|
|
57
|
+
itemIndex?: number;
|
|
58
|
+
itemKey?: string;
|
|
59
|
+
currentColor?: string;
|
|
60
|
+
};
|
|
51
61
|
type CmsBlock = {
|
|
52
62
|
definition: CmsComponentDefinition;
|
|
53
63
|
Renderer: ComponentType<CmsRendererProps>;
|
|
@@ -66,6 +76,16 @@ declare const estateProjectPageBlocks: CmsBlock[];
|
|
|
66
76
|
declare const minimalUiComponents: CmsBlock[];
|
|
67
77
|
declare const wikexComponents: CmsBlock[];
|
|
68
78
|
declare const estateComponents: CmsBlock[];
|
|
69
|
-
declare const wikexCmsBlocks:
|
|
79
|
+
declare const wikexCmsBlocks: {
|
|
80
|
+
Renderer: (props: CmsRendererProps) => react.FunctionComponentElement<{
|
|
81
|
+
content: Record<string, string | number>;
|
|
82
|
+
editable?: boolean | undefined;
|
|
83
|
+
onSelectText?: ((target: CmsTextTarget) => void) | undefined;
|
|
84
|
+
selectedTextField?: string | undefined;
|
|
85
|
+
} & {
|
|
86
|
+
children?: react.ReactNode;
|
|
87
|
+
}>;
|
|
88
|
+
definition: CmsComponentDefinition;
|
|
89
|
+
}[];
|
|
70
90
|
|
|
71
|
-
export { type CmsBlock, type CmsComponentCategory, type CmsComponentDefinition, type CmsComponentPlacement, type CmsFieldDefinition, type CmsFieldType, type CmsListItemField, type CmsRendererProps, estateBlocks, estateComponents, estateProjectPageBlocks, minimalMarketingBlocks, minimalUiBlocks, minimalUiComponents, siteChromeBlocks, wikexCmsBlocks, wikexComponents };
|
|
91
|
+
export { type CmsBlock, type CmsComponentCategory, type CmsComponentDefinition, type CmsComponentPlacement, type CmsFieldDefinition, type CmsFieldType, type CmsListItemField, type CmsRendererProps, type CmsTextTarget, estateBlocks, estateComponents, estateProjectPageBlocks, minimalMarketingBlocks, minimalUiBlocks, minimalUiComponents, siteChromeBlocks, wikexCmsBlocks, wikexComponents };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import * as react from 'react';
|
|
1
2
|
import { ComponentType } from 'react';
|
|
2
3
|
|
|
3
4
|
type CmsFieldType = "text" | "textarea" | "richText" | "image" | "link" | "number" | "select" | "list";
|
|
@@ -42,12 +43,21 @@ type CmsRendererProps = {
|
|
|
42
43
|
editable?: boolean;
|
|
43
44
|
readOnlyFields?: string[];
|
|
44
45
|
onChange?: (field: string, value: string) => void;
|
|
46
|
+
onSelectText?: (target: CmsTextTarget) => void;
|
|
47
|
+
selectedTextField?: string;
|
|
45
48
|
onImageRequest?: (field: string, listItem?: {
|
|
46
49
|
index: number;
|
|
47
50
|
key: string;
|
|
48
51
|
}) => void;
|
|
49
52
|
onAddListItem?: () => void;
|
|
50
53
|
};
|
|
54
|
+
type CmsTextTarget = {
|
|
55
|
+
field: string;
|
|
56
|
+
listField?: string;
|
|
57
|
+
itemIndex?: number;
|
|
58
|
+
itemKey?: string;
|
|
59
|
+
currentColor?: string;
|
|
60
|
+
};
|
|
51
61
|
type CmsBlock = {
|
|
52
62
|
definition: CmsComponentDefinition;
|
|
53
63
|
Renderer: ComponentType<CmsRendererProps>;
|
|
@@ -66,6 +76,16 @@ declare const estateProjectPageBlocks: CmsBlock[];
|
|
|
66
76
|
declare const minimalUiComponents: CmsBlock[];
|
|
67
77
|
declare const wikexComponents: CmsBlock[];
|
|
68
78
|
declare const estateComponents: CmsBlock[];
|
|
69
|
-
declare const wikexCmsBlocks:
|
|
79
|
+
declare const wikexCmsBlocks: {
|
|
80
|
+
Renderer: (props: CmsRendererProps) => react.FunctionComponentElement<{
|
|
81
|
+
content: Record<string, string | number>;
|
|
82
|
+
editable?: boolean | undefined;
|
|
83
|
+
onSelectText?: ((target: CmsTextTarget) => void) | undefined;
|
|
84
|
+
selectedTextField?: string | undefined;
|
|
85
|
+
} & {
|
|
86
|
+
children?: react.ReactNode;
|
|
87
|
+
}>;
|
|
88
|
+
definition: CmsComponentDefinition;
|
|
89
|
+
}[];
|
|
70
90
|
|
|
71
|
-
export { type CmsBlock, type CmsComponentCategory, type CmsComponentDefinition, type CmsComponentPlacement, type CmsFieldDefinition, type CmsFieldType, type CmsListItemField, type CmsRendererProps, estateBlocks, estateComponents, estateProjectPageBlocks, minimalMarketingBlocks, minimalUiBlocks, minimalUiComponents, siteChromeBlocks, wikexCmsBlocks, wikexComponents };
|
|
91
|
+
export { type CmsBlock, type CmsComponentCategory, type CmsComponentDefinition, type CmsComponentPlacement, type CmsFieldDefinition, type CmsFieldType, type CmsListItemField, type CmsRendererProps, type CmsTextTarget, estateBlocks, estateComponents, estateProjectPageBlocks, minimalMarketingBlocks, minimalUiBlocks, minimalUiComponents, siteChromeBlocks, wikexCmsBlocks, wikexComponents };
|