@enyxs/wikex-components 0.11.17 → 0.11.18
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 +25 -2
- package/dist/index.d.ts +25 -2
- package/dist/index.js +2079 -1840
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1210 -973
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -111,6 +111,7 @@ type CmsTextLayout = {
|
|
|
111
111
|
fontFamily?: string;
|
|
112
112
|
fontSize?: number;
|
|
113
113
|
richText?: CmsRichText;
|
|
114
|
+
blockType?: "p" | "h1" | "h2" | "h3" | "ul" | "ol";
|
|
114
115
|
};
|
|
115
116
|
declare const CMS_TEXT_LAYOUT_SUFFIX = "TextLayout";
|
|
116
117
|
declare function parseCmsTextLayout(value: unknown): CmsTextLayout;
|
|
@@ -124,11 +125,33 @@ type CmsTextToolbarProps = {
|
|
|
124
125
|
color: string;
|
|
125
126
|
colorPicker: ReactNode;
|
|
126
127
|
inlineControls?: ReactNode;
|
|
128
|
+
structureControls?: ReactNode;
|
|
129
|
+
computedFontSize?: number;
|
|
127
130
|
onLayoutChange: (change: Pick<CmsTextLayout, "fontFamily" | "fontSize">) => void;
|
|
128
131
|
onColorChange: (color: string) => void;
|
|
129
132
|
onReset: () => void;
|
|
130
133
|
};
|
|
131
|
-
declare function CmsTextToolbar({ layout, color, colorPicker, inlineControls, onLayoutChange, onColorChange, onReset }: CmsTextToolbarProps): react.JSX.Element;
|
|
134
|
+
declare function CmsTextToolbar({ layout, color, colorPicker, inlineControls, structureControls, computedFontSize, onLayoutChange, onColorChange, onReset }: CmsTextToolbarProps): react.JSX.Element;
|
|
135
|
+
|
|
136
|
+
declare const CMS_ELEMENTS_FIELD = "__cmsElements";
|
|
137
|
+
type CmsElementState = {
|
|
138
|
+
hidden: string[];
|
|
139
|
+
insertions: Array<{
|
|
140
|
+
anchor: string;
|
|
141
|
+
field: string;
|
|
142
|
+
kind?: "image";
|
|
143
|
+
}>;
|
|
144
|
+
lists: Record<string, {
|
|
145
|
+
order: string[];
|
|
146
|
+
type?: "ul" | "ol";
|
|
147
|
+
marker?: string;
|
|
148
|
+
added: Record<string, {
|
|
149
|
+
template: number;
|
|
150
|
+
field: string;
|
|
151
|
+
}>;
|
|
152
|
+
}>;
|
|
153
|
+
};
|
|
154
|
+
declare function parseCmsElements(value: unknown): CmsElementState;
|
|
132
155
|
|
|
133
156
|
declare const minimalUiComponents: CmsBlock[];
|
|
134
157
|
declare const wikexComponents: CmsBlock[];
|
|
@@ -144,4 +167,4 @@ declare const wikexCmsBlocks: {
|
|
|
144
167
|
definition: CmsComponentDefinition;
|
|
145
168
|
}[];
|
|
146
169
|
|
|
147
|
-
export { CMS_TEXT_FONTS, CMS_TEXT_LAYOUT_SUFFIX, type CmsBlock, type CmsComponentCategory, type CmsComponentDefinition, type CmsComponentPlacement, type CmsFieldDefinition, type CmsFieldType, type CmsListItemField, type CmsRendererProps, type CmsRichText, type CmsTextLayout, type CmsTextMark, type CmsTextTarget, CmsTextToolbar, type CmsTextToolbarProps, ConsultationSubmission, applyCmsTextLayout, cmsTextLayoutStyle, minimalMarketingBlocks, minimalUiBlocks, minimalUiComponents, parseCmsRichText, parseCmsTextLayout, patchCmsRichText, readCmsEditableText, rebaseCmsRichText, rebaseCmsTextLayouts, renderCmsRichText, safeCmsTextHref, siteChromeBlocks, wikexCmsBlocks, wikexCommodityBlocks, wikexComponents };
|
|
170
|
+
export { CMS_ELEMENTS_FIELD, CMS_TEXT_FONTS, CMS_TEXT_LAYOUT_SUFFIX, type CmsBlock, type CmsComponentCategory, type CmsComponentDefinition, type CmsComponentPlacement, type CmsElementState, type CmsFieldDefinition, type CmsFieldType, type CmsListItemField, type CmsRendererProps, type CmsRichText, type CmsTextLayout, type CmsTextMark, type CmsTextTarget, CmsTextToolbar, type CmsTextToolbarProps, ConsultationSubmission, applyCmsTextLayout, cmsTextLayoutStyle, minimalMarketingBlocks, minimalUiBlocks, minimalUiComponents, parseCmsElements, parseCmsRichText, parseCmsTextLayout, patchCmsRichText, readCmsEditableText, rebaseCmsRichText, rebaseCmsTextLayouts, renderCmsRichText, safeCmsTextHref, siteChromeBlocks, wikexCmsBlocks, wikexCommodityBlocks, wikexComponents };
|
package/dist/index.d.ts
CHANGED
|
@@ -111,6 +111,7 @@ type CmsTextLayout = {
|
|
|
111
111
|
fontFamily?: string;
|
|
112
112
|
fontSize?: number;
|
|
113
113
|
richText?: CmsRichText;
|
|
114
|
+
blockType?: "p" | "h1" | "h2" | "h3" | "ul" | "ol";
|
|
114
115
|
};
|
|
115
116
|
declare const CMS_TEXT_LAYOUT_SUFFIX = "TextLayout";
|
|
116
117
|
declare function parseCmsTextLayout(value: unknown): CmsTextLayout;
|
|
@@ -124,11 +125,33 @@ type CmsTextToolbarProps = {
|
|
|
124
125
|
color: string;
|
|
125
126
|
colorPicker: ReactNode;
|
|
126
127
|
inlineControls?: ReactNode;
|
|
128
|
+
structureControls?: ReactNode;
|
|
129
|
+
computedFontSize?: number;
|
|
127
130
|
onLayoutChange: (change: Pick<CmsTextLayout, "fontFamily" | "fontSize">) => void;
|
|
128
131
|
onColorChange: (color: string) => void;
|
|
129
132
|
onReset: () => void;
|
|
130
133
|
};
|
|
131
|
-
declare function CmsTextToolbar({ layout, color, colorPicker, inlineControls, onLayoutChange, onColorChange, onReset }: CmsTextToolbarProps): react.JSX.Element;
|
|
134
|
+
declare function CmsTextToolbar({ layout, color, colorPicker, inlineControls, structureControls, computedFontSize, onLayoutChange, onColorChange, onReset }: CmsTextToolbarProps): react.JSX.Element;
|
|
135
|
+
|
|
136
|
+
declare const CMS_ELEMENTS_FIELD = "__cmsElements";
|
|
137
|
+
type CmsElementState = {
|
|
138
|
+
hidden: string[];
|
|
139
|
+
insertions: Array<{
|
|
140
|
+
anchor: string;
|
|
141
|
+
field: string;
|
|
142
|
+
kind?: "image";
|
|
143
|
+
}>;
|
|
144
|
+
lists: Record<string, {
|
|
145
|
+
order: string[];
|
|
146
|
+
type?: "ul" | "ol";
|
|
147
|
+
marker?: string;
|
|
148
|
+
added: Record<string, {
|
|
149
|
+
template: number;
|
|
150
|
+
field: string;
|
|
151
|
+
}>;
|
|
152
|
+
}>;
|
|
153
|
+
};
|
|
154
|
+
declare function parseCmsElements(value: unknown): CmsElementState;
|
|
132
155
|
|
|
133
156
|
declare const minimalUiComponents: CmsBlock[];
|
|
134
157
|
declare const wikexComponents: CmsBlock[];
|
|
@@ -144,4 +167,4 @@ declare const wikexCmsBlocks: {
|
|
|
144
167
|
definition: CmsComponentDefinition;
|
|
145
168
|
}[];
|
|
146
169
|
|
|
147
|
-
export { CMS_TEXT_FONTS, CMS_TEXT_LAYOUT_SUFFIX, type CmsBlock, type CmsComponentCategory, type CmsComponentDefinition, type CmsComponentPlacement, type CmsFieldDefinition, type CmsFieldType, type CmsListItemField, type CmsRendererProps, type CmsRichText, type CmsTextLayout, type CmsTextMark, type CmsTextTarget, CmsTextToolbar, type CmsTextToolbarProps, ConsultationSubmission, applyCmsTextLayout, cmsTextLayoutStyle, minimalMarketingBlocks, minimalUiBlocks, minimalUiComponents, parseCmsRichText, parseCmsTextLayout, patchCmsRichText, readCmsEditableText, rebaseCmsRichText, rebaseCmsTextLayouts, renderCmsRichText, safeCmsTextHref, siteChromeBlocks, wikexCmsBlocks, wikexCommodityBlocks, wikexComponents };
|
|
170
|
+
export { CMS_ELEMENTS_FIELD, CMS_TEXT_FONTS, CMS_TEXT_LAYOUT_SUFFIX, type CmsBlock, type CmsComponentCategory, type CmsComponentDefinition, type CmsComponentPlacement, type CmsElementState, type CmsFieldDefinition, type CmsFieldType, type CmsListItemField, type CmsRendererProps, type CmsRichText, type CmsTextLayout, type CmsTextMark, type CmsTextTarget, CmsTextToolbar, type CmsTextToolbarProps, ConsultationSubmission, applyCmsTextLayout, cmsTextLayoutStyle, minimalMarketingBlocks, minimalUiBlocks, minimalUiComponents, parseCmsElements, parseCmsRichText, parseCmsTextLayout, patchCmsRichText, readCmsEditableText, rebaseCmsRichText, rebaseCmsTextLayouts, renderCmsRichText, safeCmsTextHref, siteChromeBlocks, wikexCmsBlocks, wikexCommodityBlocks, wikexComponents };
|