@yext/visual-editor 0.0.10 → 0.0.12
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.cts +8 -7
- package/dist/index.d.ts +8 -7
- package/dist/visual-editor.cjs +92 -47
- package/dist/visual-editor.js +11788 -3896
- package/package.json +3 -1
package/dist/index.d.cts
CHANGED
|
@@ -7,7 +7,7 @@ type Style = {
|
|
|
7
7
|
label: string;
|
|
8
8
|
plugin: string;
|
|
9
9
|
type: "number";
|
|
10
|
-
default:
|
|
10
|
+
default: string;
|
|
11
11
|
} | {
|
|
12
12
|
label: string;
|
|
13
13
|
plugin: string;
|
|
@@ -118,6 +118,11 @@ type RenderYextEntityFieldSelectorProps<T extends Record<string, any>> = {
|
|
|
118
118
|
*/
|
|
119
119
|
declare const YextEntityFieldSelector: <T extends Record<string, any>>(props: RenderYextEntityFieldSelectorProps<T>) => Field<YextEntityField>;
|
|
120
120
|
|
|
121
|
+
type ColorSelectorProps = {
|
|
122
|
+
label: string;
|
|
123
|
+
};
|
|
124
|
+
declare const ColorSelector: (props: ColorSelectorProps) => Field;
|
|
125
|
+
|
|
121
126
|
declare const usePlatformBridgeDocument: () => any;
|
|
122
127
|
|
|
123
128
|
/**
|
|
@@ -133,16 +138,12 @@ declare const EntityFieldsProvider: ({ entityFields, children, }: EntityFieldsPr
|
|
|
133
138
|
declare const useEntityFields: () => YextSchemaField[];
|
|
134
139
|
|
|
135
140
|
type Document = {
|
|
136
|
-
c_theme?: CssVariableOverrides;
|
|
137
141
|
[key: string]: any;
|
|
138
142
|
};
|
|
139
|
-
|
|
140
|
-
[key: string]: string;
|
|
141
|
-
};
|
|
142
|
-
declare const applyTheme: (document: Document, base?: string) => string;
|
|
143
|
+
declare const applyTheme: (document: Document, themeConfig: ThemeConfig, base?: string) => string;
|
|
143
144
|
|
|
144
145
|
declare function resolveVisualEditorData(data: any, pageSet: string | undefined): string;
|
|
145
146
|
|
|
146
147
|
declare const resolveYextEntityField: <T>(document: any, entityField: YextEntityField) => T | undefined;
|
|
147
148
|
|
|
148
|
-
export { Editor, EntityField, EntityFieldsProvider, type RenderYextEntityFieldSelectorProps, type ThemeConfig, type YextEntityField, YextEntityFieldSelector, applyTheme, resolveVisualEditorData, resolveYextEntityField, themeResolver, useEntityFields, usePlatformBridgeDocument, usePlatformBridgeEntityFields };
|
|
149
|
+
export { ColorSelector, Editor, EntityField, EntityFieldsProvider, type RenderYextEntityFieldSelectorProps, type ThemeConfig, type YextEntityField, YextEntityFieldSelector, applyTheme, resolveVisualEditorData, resolveYextEntityField, themeResolver, useEntityFields, usePlatformBridgeDocument, usePlatformBridgeEntityFields };
|
package/dist/index.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ type Style = {
|
|
|
7
7
|
label: string;
|
|
8
8
|
plugin: string;
|
|
9
9
|
type: "number";
|
|
10
|
-
default:
|
|
10
|
+
default: string;
|
|
11
11
|
} | {
|
|
12
12
|
label: string;
|
|
13
13
|
plugin: string;
|
|
@@ -118,6 +118,11 @@ type RenderYextEntityFieldSelectorProps<T extends Record<string, any>> = {
|
|
|
118
118
|
*/
|
|
119
119
|
declare const YextEntityFieldSelector: <T extends Record<string, any>>(props: RenderYextEntityFieldSelectorProps<T>) => Field<YextEntityField>;
|
|
120
120
|
|
|
121
|
+
type ColorSelectorProps = {
|
|
122
|
+
label: string;
|
|
123
|
+
};
|
|
124
|
+
declare const ColorSelector: (props: ColorSelectorProps) => Field;
|
|
125
|
+
|
|
121
126
|
declare const usePlatformBridgeDocument: () => any;
|
|
122
127
|
|
|
123
128
|
/**
|
|
@@ -133,16 +138,12 @@ declare const EntityFieldsProvider: ({ entityFields, children, }: EntityFieldsPr
|
|
|
133
138
|
declare const useEntityFields: () => YextSchemaField[];
|
|
134
139
|
|
|
135
140
|
type Document = {
|
|
136
|
-
c_theme?: CssVariableOverrides;
|
|
137
141
|
[key: string]: any;
|
|
138
142
|
};
|
|
139
|
-
|
|
140
|
-
[key: string]: string;
|
|
141
|
-
};
|
|
142
|
-
declare const applyTheme: (document: Document, base?: string) => string;
|
|
143
|
+
declare const applyTheme: (document: Document, themeConfig: ThemeConfig, base?: string) => string;
|
|
143
144
|
|
|
144
145
|
declare function resolveVisualEditorData(data: any, pageSet: string | undefined): string;
|
|
145
146
|
|
|
146
147
|
declare const resolveYextEntityField: <T>(document: any, entityField: YextEntityField) => T | undefined;
|
|
147
148
|
|
|
148
|
-
export { Editor, EntityField, EntityFieldsProvider, type RenderYextEntityFieldSelectorProps, type ThemeConfig, type YextEntityField, YextEntityFieldSelector, applyTheme, resolveVisualEditorData, resolveYextEntityField, themeResolver, useEntityFields, usePlatformBridgeDocument, usePlatformBridgeEntityFields };
|
|
149
|
+
export { ColorSelector, Editor, EntityField, EntityFieldsProvider, type RenderYextEntityFieldSelectorProps, type ThemeConfig, type YextEntityField, YextEntityFieldSelector, applyTheme, resolveVisualEditorData, resolveYextEntityField, themeResolver, useEntityFields, usePlatformBridgeDocument, usePlatformBridgeEntityFields };
|