@sitecore-jss/sitecore-jss-react 22.1.0-canary.9 → 22.1.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/LICENSE.txt +202 -202
- package/README.md +10 -10
- package/dist/cjs/components/Date.js +12 -4
- package/dist/cjs/components/DefaultEmptyFieldEditingComponents.js +22 -0
- package/dist/cjs/components/EditFrame.js +2 -2
- package/dist/cjs/components/EditingScripts.js +27 -0
- package/dist/cjs/components/ErrorBoundary.js +22 -7
- package/dist/cjs/components/FieldMetadata.js +33 -0
- package/dist/cjs/components/File.js +2 -1
- package/dist/cjs/components/HiddenRendering.js +7 -4
- package/dist/cjs/components/Image.js +15 -14
- package/dist/cjs/components/Link.js +13 -6
- package/dist/cjs/components/Placeholder.js +9 -6
- package/dist/cjs/components/PlaceholderCommon.js +69 -21
- package/dist/cjs/components/PlaceholderMetadata.js +67 -0
- package/dist/cjs/components/RichText.js +14 -3
- package/dist/cjs/components/Text.js +12 -4
- package/dist/cjs/enhancers/withEmptyFieldEditingComponent.js +56 -0
- package/dist/cjs/enhancers/withFieldMetadata.js +60 -0
- package/dist/cjs/enhancers/withPlaceholder.js +4 -3
- package/dist/cjs/index.js +17 -6
- package/dist/esm/components/Date.js +12 -3
- package/dist/esm/components/DefaultEmptyFieldEditingComponents.js +14 -0
- package/dist/esm/components/EditFrame.js +1 -1
- package/dist/esm/components/EditingScripts.js +20 -0
- package/dist/esm/components/ErrorBoundary.js +22 -7
- package/dist/esm/components/FieldMetadata.js +26 -0
- package/dist/esm/components/File.js +2 -1
- package/dist/esm/components/HiddenRendering.js +6 -3
- package/dist/esm/components/Image.js +15 -13
- package/dist/esm/components/Link.js +13 -6
- package/dist/esm/components/Placeholder.js +7 -4
- package/dist/esm/components/PlaceholderCommon.js +67 -21
- package/dist/esm/components/PlaceholderMetadata.js +60 -0
- package/dist/esm/components/RichText.js +14 -3
- package/dist/esm/components/Text.js +12 -3
- package/dist/esm/enhancers/withEmptyFieldEditingComponent.js +29 -0
- package/dist/esm/enhancers/withFieldMetadata.js +33 -0
- package/dist/esm/enhancers/withPlaceholder.js +4 -3
- package/dist/esm/index.js +6 -2
- package/package.json +5 -5
- package/types/components/Date.d.ts +4 -8
- package/types/components/DefaultEmptyFieldEditingComponents.d.ts +4 -0
- package/types/components/EditFrame.d.ts +1 -1
- package/types/components/EditingScripts.d.ts +5 -0
- package/types/components/ErrorBoundary.d.ts +4 -3
- package/types/components/FieldMetadata.d.ts +23 -0
- package/types/components/HiddenRendering.d.ts +0 -1
- package/types/components/Image.d.ts +4 -8
- package/types/components/Link.d.ts +7 -10
- package/types/components/Placeholder.d.ts +1 -4
- package/types/components/PlaceholderCommon.d.ts +22 -4
- package/types/components/PlaceholderMetadata.d.ts +30 -0
- package/types/components/RichText.d.ts +8 -8
- package/types/components/Text.d.ts +6 -10
- package/types/components/sharedTypes.d.ts +26 -1
- package/types/enhancers/withEmptyFieldEditingComponent.d.ts +28 -0
- package/types/enhancers/withFieldMetadata.d.ts +17 -0
- package/types/enhancers/withPlaceholder.d.ts +2 -4
- package/types/enhancers/withSitecoreContext.d.ts +4 -6
- package/types/index.d.ts +9 -4
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
import React, { ComponentType } from 'react';
|
|
3
3
|
import PropTypes from 'prop-types';
|
|
4
4
|
import { ComponentFactory } from './sharedTypes';
|
|
5
|
-
import { ComponentRendering, RouteData, Field, Item, HtmlElementRendering } from '@sitecore-jss/sitecore-jss/layout';
|
|
5
|
+
import { ComponentRendering, RouteData, Field, Item, HtmlElementRendering, EditMode } from '@sitecore-jss/sitecore-jss/layout';
|
|
6
|
+
import { SitecoreContextValue } from './SitecoreContext';
|
|
6
7
|
type ErrorComponentProps = {
|
|
7
8
|
[prop: string]: unknown;
|
|
8
9
|
};
|
|
@@ -11,6 +12,18 @@ export type ComponentProps = {
|
|
|
11
12
|
[key: string]: unknown;
|
|
12
13
|
rendering: ComponentRendering;
|
|
13
14
|
};
|
|
15
|
+
/**
|
|
16
|
+
* Returns a regular expression pattern for a dynamic placeholder name.
|
|
17
|
+
* @param {string} placeholder Placeholder name with a dynamic segment (e.g. 'main-{*}')
|
|
18
|
+
* @returns Regular expression pattern for the dynamic segment
|
|
19
|
+
*/
|
|
20
|
+
export declare const getDynamicPlaceholderPattern: (placeholder: string) => RegExp;
|
|
21
|
+
/**
|
|
22
|
+
* Checks if the placeholder name is dynamic.
|
|
23
|
+
* @param {string} placeholder Placeholder name
|
|
24
|
+
* @returns True if the placeholder name is dynamic
|
|
25
|
+
*/
|
|
26
|
+
export declare const isDynamicPlaceholder: (placeholder: string) => boolean;
|
|
14
27
|
export interface PlaceholderProps {
|
|
15
28
|
[key: string]: unknown;
|
|
16
29
|
/** Name of the placeholder to render. */
|
|
@@ -57,6 +70,10 @@ export interface PlaceholderProps {
|
|
|
57
70
|
* the placeholder
|
|
58
71
|
*/
|
|
59
72
|
errorComponent?: React.ComponentClass<ErrorComponentProps> | React.FC<ErrorComponentProps>;
|
|
73
|
+
/**
|
|
74
|
+
* Context data from the Sitecore Layout Service
|
|
75
|
+
*/
|
|
76
|
+
sitecoreContext: SitecoreContextValue;
|
|
60
77
|
/**
|
|
61
78
|
* The message that gets displayed while component is loading
|
|
62
79
|
*/
|
|
@@ -64,9 +81,9 @@ export interface PlaceholderProps {
|
|
|
64
81
|
}
|
|
65
82
|
export declare class PlaceholderCommon<T extends PlaceholderProps> extends React.Component<T> {
|
|
66
83
|
static propTypes: {
|
|
67
|
-
rendering: PropTypes.Validator<NonNullable<NonNullable<ComponentRendering | RouteData<Record<string, Field<import("@sitecore-jss/sitecore-jss/
|
|
84
|
+
rendering: PropTypes.Validator<NonNullable<NonNullable<ComponentRendering | RouteData<Record<string, Field<import("@sitecore-jss/sitecore-jss/layout").GenericFieldValue> | Item | Item[]>>>>>;
|
|
68
85
|
fields: PropTypes.Requireable<{
|
|
69
|
-
[x: string]: NonNullable<NonNullable<Field<import("@sitecore-jss/sitecore-jss/
|
|
86
|
+
[x: string]: NonNullable<NonNullable<Field<import("@sitecore-jss/sitecore-jss/layout").GenericFieldValue> | Item[]>>;
|
|
70
87
|
}>;
|
|
71
88
|
params: PropTypes.Requireable<{
|
|
72
89
|
[x: string]: string;
|
|
@@ -75,13 +92,14 @@ export declare class PlaceholderCommon<T extends PlaceholderProps> extends React
|
|
|
75
92
|
hiddenRenderingComponent: PropTypes.Requireable<NonNullable<React.ComponentClass<unknown, any> | React.FC<unknown>>>;
|
|
76
93
|
errorComponent: PropTypes.Requireable<NonNullable<React.ComponentClass<unknown, any> | React.FC<unknown>>>;
|
|
77
94
|
modifyComponentProps: PropTypes.Requireable<(...args: any[]) => any>;
|
|
95
|
+
sitecoreContext: PropTypes.Requireable<SitecoreContextValue>;
|
|
78
96
|
};
|
|
79
97
|
nodeRefs: Element[];
|
|
80
98
|
state: Readonly<{
|
|
81
99
|
error?: Error;
|
|
82
100
|
}>;
|
|
83
101
|
constructor(props: T);
|
|
84
|
-
static getPlaceholderDataFromRenderingData(rendering: ComponentRendering | RouteData, name: string): (ComponentRendering | HtmlElementRendering)[];
|
|
102
|
+
static getPlaceholderDataFromRenderingData(rendering: ComponentRendering | RouteData, name: string, editMode?: EditMode): (ComponentRendering | HtmlElementRendering)[];
|
|
85
103
|
componentDidMount(): void;
|
|
86
104
|
componentDidUpdate(): void;
|
|
87
105
|
componentDidCatch(error: Error): void;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/// <reference types="@types/react" />
|
|
2
|
+
import { ReactNode } from 'react';
|
|
3
|
+
import { ComponentRendering } from '@sitecore-jss/sitecore-jss/layout';
|
|
4
|
+
/**
|
|
5
|
+
* Props containing the component data to render.
|
|
6
|
+
*/
|
|
7
|
+
export interface PlaceholderMetadataProps {
|
|
8
|
+
rendering: ComponentRendering;
|
|
9
|
+
placeholderName?: string;
|
|
10
|
+
children?: ReactNode;
|
|
11
|
+
}
|
|
12
|
+
export type CodeBlockAttributes = {
|
|
13
|
+
type: string;
|
|
14
|
+
chrometype: string;
|
|
15
|
+
className: string;
|
|
16
|
+
kind: string;
|
|
17
|
+
id?: string;
|
|
18
|
+
};
|
|
19
|
+
/**
|
|
20
|
+
* A React component to generate metadata blocks for a placeholder or rendering.
|
|
21
|
+
* It utilizes dynamic attributes based on whether the component acts as a placeholder
|
|
22
|
+
* or as a rendering to properly render the surrounding code blocks.
|
|
23
|
+
*
|
|
24
|
+
* @param {object} props The properties passed to the component.
|
|
25
|
+
* @param {ComponentRendering} props.rendering The rendering data.
|
|
26
|
+
* @param {string} [props.placeholderName] The name of the placeholder.
|
|
27
|
+
* @param {JSX.Element} props.children The child components or elements to be wrapped by the metadata code blocks.
|
|
28
|
+
* @returns {JSX.Element} A React fragment containing open and close code blocks surrounding the children elements.
|
|
29
|
+
*/
|
|
30
|
+
export declare const PlaceholderMetadata: ({ rendering, placeholderName, children, }: PlaceholderMetadataProps) => JSX.Element;
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
/// <reference types="@types/react" />
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import PropTypes from 'prop-types';
|
|
4
|
-
|
|
4
|
+
import { EditableFieldProps } from './sharedTypes';
|
|
5
|
+
import { FieldMetadata } from '@sitecore-jss/sitecore-jss/layout';
|
|
6
|
+
export interface RichTextField extends FieldMetadata {
|
|
5
7
|
value?: string;
|
|
6
8
|
editable?: string;
|
|
7
9
|
}
|
|
8
|
-
export interface RichTextProps {
|
|
10
|
+
export interface RichTextProps extends EditableFieldProps {
|
|
9
11
|
[htmlAttributes: string]: unknown;
|
|
10
12
|
/** The rich text field data. */
|
|
11
13
|
field?: RichTextField;
|
|
@@ -14,19 +16,17 @@ export interface RichTextProps {
|
|
|
14
16
|
* @default <div />
|
|
15
17
|
*/
|
|
16
18
|
tag?: string;
|
|
17
|
-
/**
|
|
18
|
-
* Can be used to explicitly disable inline editing.
|
|
19
|
-
* If true and `field.editable` has a value, then `field.editable` will be processed and rendered as component output. If false, `field.editable` value will be ignored and not rendered.
|
|
20
|
-
* @default true
|
|
21
|
-
*/
|
|
22
|
-
editable?: boolean;
|
|
23
19
|
}
|
|
24
20
|
export declare const RichText: React.FC<RichTextProps>;
|
|
25
21
|
export declare const RichTextPropTypes: {
|
|
26
22
|
field: PropTypes.Requireable<PropTypes.InferProps<{
|
|
27
23
|
value: PropTypes.Requireable<string>;
|
|
28
24
|
editable: PropTypes.Requireable<string>;
|
|
25
|
+
metadata: PropTypes.Requireable<{
|
|
26
|
+
[x: string]: any;
|
|
27
|
+
}>;
|
|
29
28
|
}>>;
|
|
30
29
|
tag: PropTypes.Requireable<string>;
|
|
31
30
|
editable: PropTypes.Requireable<boolean>;
|
|
31
|
+
emptyFieldEditingComponent: PropTypes.Requireable<NonNullable<React.ComponentClass<unknown, any> | React.FC<unknown>>>;
|
|
32
32
|
};
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
/// <reference types="@types/react" />
|
|
2
|
-
import
|
|
3
|
-
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { EditableFieldProps } from './sharedTypes';
|
|
4
|
+
import { FieldMetadata } from '@sitecore-jss/sitecore-jss/layout';
|
|
5
|
+
export interface TextField extends FieldMetadata {
|
|
4
6
|
value?: string | number;
|
|
5
7
|
editable?: string;
|
|
6
8
|
}
|
|
7
|
-
export interface TextProps {
|
|
9
|
+
export interface TextProps extends EditableFieldProps {
|
|
8
10
|
[htmlAttributes: string]: unknown;
|
|
9
11
|
/** The text field data. */
|
|
10
12
|
field?: TextField;
|
|
@@ -12,15 +14,9 @@ export interface TextProps {
|
|
|
12
14
|
* The HTML element that will wrap the contents of the field.
|
|
13
15
|
*/
|
|
14
16
|
tag?: string;
|
|
15
|
-
/**
|
|
16
|
-
* Can be used to explicitly disable inline editing.
|
|
17
|
-
* If true and `field.editable` has a value, then `field.editable` will be processed and rendered as component output. If false, `field.editable` value will be ignored and not rendered.
|
|
18
|
-
* @default true
|
|
19
|
-
*/
|
|
20
|
-
editable?: boolean;
|
|
21
17
|
/**
|
|
22
18
|
* If false, HTML-encoding of the field value is disabled and the value is rendered as-is.
|
|
23
19
|
*/
|
|
24
20
|
encode?: boolean;
|
|
25
21
|
}
|
|
26
|
-
export declare const Text:
|
|
22
|
+
export declare const Text: React.FC<TextProps>;
|
|
@@ -4,4 +4,29 @@ import { ComponentType } from 'react';
|
|
|
4
4
|
* @param {string} componentName component to be imported from the component factory
|
|
5
5
|
* @param {string?} exportName component to be imported in case you export multiple components from the same file
|
|
6
6
|
*/
|
|
7
|
-
export type ComponentFactory = (componentName: string, exportName?: string) =>
|
|
7
|
+
export type ComponentFactory = (componentName: string, exportName?: string) => JssComponentType | null;
|
|
8
|
+
/**
|
|
9
|
+
* Component type returned from component builder / factory
|
|
10
|
+
*/
|
|
11
|
+
export type JssComponentType = ComponentType & {
|
|
12
|
+
render?: {
|
|
13
|
+
[key: string]: unknown;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
/**
|
|
17
|
+
* Shared editing field props
|
|
18
|
+
*/
|
|
19
|
+
export interface EditableFieldProps {
|
|
20
|
+
/**
|
|
21
|
+
* Can be used to explicitly disable inline editing.
|
|
22
|
+
* If true and `field.editable` has a value, then `field.editable` will be processed and rendered as component output. If false, `field.editable` value will be ignored and not rendered.
|
|
23
|
+
* @default true
|
|
24
|
+
*/
|
|
25
|
+
editable?: boolean;
|
|
26
|
+
/**
|
|
27
|
+
* -- Edit Mode Metadata --
|
|
28
|
+
*
|
|
29
|
+
* Custom element to render in Pages in Metadata edit mode if field value is empty
|
|
30
|
+
*/
|
|
31
|
+
emptyFieldEditingComponent?: React.ComponentClass<unknown> | React.FC<unknown>;
|
|
32
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/// <reference types="@types/react" />
|
|
2
|
+
import React, { ComponentType } from 'react';
|
|
3
|
+
import { GenericFieldValue, Field, FieldMetadata } from '@sitecore-jss/sitecore-jss/layout';
|
|
4
|
+
/**
|
|
5
|
+
* The HOC options
|
|
6
|
+
* */
|
|
7
|
+
export interface WithEmptyFieldEditingComponentOptions {
|
|
8
|
+
/**
|
|
9
|
+
* the default empty field component
|
|
10
|
+
*/
|
|
11
|
+
defaultEmptyFieldEditingComponent: React.FC;
|
|
12
|
+
/**
|
|
13
|
+
* 'true' if forward reference is needed
|
|
14
|
+
*/
|
|
15
|
+
isForwardRef?: boolean;
|
|
16
|
+
}
|
|
17
|
+
interface WithEmptyFieldEditingComponentProps {
|
|
18
|
+
field?: (Partial<Field> | GenericFieldValue) & FieldMetadata;
|
|
19
|
+
editable?: boolean;
|
|
20
|
+
emptyFieldEditingComponent?: React.ComponentClass | React.FC;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Returns the passed field component or default component in case field value is empty and edit mode is 'metadata'
|
|
24
|
+
* @param {ComponentType<FieldComponentProps>} FieldComponent the field component
|
|
25
|
+
* @param {WithEmptyFieldEditingComponentProps} options the options of the HOC;
|
|
26
|
+
*/
|
|
27
|
+
export declare function withEmptyFieldEditingComponent<FieldComponentProps extends WithEmptyFieldEditingComponentProps, RefElementType = HTMLElement>(FieldComponent: ComponentType<FieldComponentProps>, options: WithEmptyFieldEditingComponentOptions): React.ForwardRefExoticComponent<React.PropsWithoutRef<FieldComponentProps> & React.RefAttributes<RefElementType>> | ((props: FieldComponentProps) => React.JSX.Element);
|
|
28
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/// <reference types="@types/react" />
|
|
2
|
+
import React, { ComponentType } from 'react';
|
|
3
|
+
interface WithMetadataProps {
|
|
4
|
+
field?: {
|
|
5
|
+
metadata?: {
|
|
6
|
+
[key: string]: unknown;
|
|
7
|
+
};
|
|
8
|
+
};
|
|
9
|
+
editable?: boolean;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Wraps the field component with metadata markup intended to be used for chromes hydration in Pages
|
|
13
|
+
* @param {ComponentType<FieldComponentProps>} FieldComponent the field component
|
|
14
|
+
* @param {boolean} isForwardRef set to 'true' if forward reference is needed
|
|
15
|
+
*/
|
|
16
|
+
export declare function withFieldMetadata<FieldComponentProps extends WithMetadataProps, RefElementType = HTMLElement>(FieldComponent: ComponentType<FieldComponentProps>, isForwardRef?: boolean): React.ForwardRefExoticComponent<React.PropsWithoutRef<FieldComponentProps> & React.RefAttributes<RefElementType>> | ((props: FieldComponentProps) => React.JSX.Element);
|
|
17
|
+
export {};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="@types/react" />
|
|
1
2
|
import React from 'react';
|
|
2
3
|
import { ComponentRendering, RouteData } from '@sitecore-jss/sitecore-jss/layout';
|
|
3
4
|
import { PlaceholderProps } from '../components/PlaceholderCommon';
|
|
@@ -31,7 +32,4 @@ export type WithPlaceholderSpec = (string | PlaceholderToPropMapping) | (string
|
|
|
31
32
|
* @param {WithPlaceholderSpec} placeholders
|
|
32
33
|
* @param {WithPlaceholderOptions} [options]
|
|
33
34
|
*/
|
|
34
|
-
export declare function withPlaceholder(placeholders: WithPlaceholderSpec, options?: WithPlaceholderOptions): (WrappedComponent: React.ComponentClass<PlaceholderProps> | React.FunctionComponent<PlaceholderProps>) =>
|
|
35
|
-
(props: PlaceholderProps): JSX.Element;
|
|
36
|
-
displayName: string;
|
|
37
|
-
};
|
|
35
|
+
export declare function withPlaceholder(placeholders: WithPlaceholderSpec, options?: WithPlaceholderOptions): (WrappedComponent: React.ComponentClass<PlaceholderProps> | React.FunctionComponent<PlaceholderProps>) => (props: import("@sitecore-jss/sitecore-jss/utils").EnhancedOmit<PlaceholderProps, keyof import("./withSitecoreContext").WithSitecoreContextProps>) => React.JSX.Element;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
/// <reference types="@types/react" />
|
|
2
|
-
import React
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { EnhancedOmit } from '@sitecore-jss/sitecore-jss/utils';
|
|
3
4
|
import { SitecoreContextValue } from '../components/SitecoreContext';
|
|
4
5
|
export interface WithSitecoreContextOptions {
|
|
5
6
|
updatable?: boolean;
|
|
@@ -8,14 +9,11 @@ export interface WithSitecoreContextProps {
|
|
|
8
9
|
sitecoreContext: SitecoreContextValue;
|
|
9
10
|
updateSitecoreContext?: ((value: SitecoreContextValue) => void) | false;
|
|
10
11
|
}
|
|
11
|
-
export
|
|
12
|
-
children?: ReactNode;
|
|
13
|
-
}
|
|
14
|
-
export type WithSitecoreContextHocProps<ComponentProps> = Pick<ComponentProps, Exclude<keyof ComponentProps, keyof WithSitecoreContextProps>>;
|
|
12
|
+
export type WithSitecoreContextHocProps<ComponentProps> = EnhancedOmit<ComponentProps, keyof WithSitecoreContextProps>;
|
|
15
13
|
/**
|
|
16
14
|
* @param {WithSitecoreContextOptions} [options]
|
|
17
15
|
*/
|
|
18
|
-
export declare function withSitecoreContext(options?: WithSitecoreContextOptions): <ComponentProps extends
|
|
16
|
+
export declare function withSitecoreContext(options?: WithSitecoreContextOptions): <ComponentProps extends WithSitecoreContextProps>(Component: React.ComponentType<ComponentProps>) => (props: EnhancedOmit<ComponentProps, keyof WithSitecoreContextProps>) => React.JSX.Element;
|
|
19
17
|
/**
|
|
20
18
|
* This hook grants acсess to the current Sitecore page context
|
|
21
19
|
* by default JSS includes the following properties in this context:
|
package/types/index.d.ts
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
export { constants, enableDebug, ClientError } from '@sitecore-jss/sitecore-jss';
|
|
2
|
-
export {
|
|
3
|
-
export {
|
|
2
|
+
export { EnhancedOmit } from '@sitecore-jss/sitecore-jss/utils';
|
|
3
|
+
export { isEditorActive, resetEditorChromes, DefaultEditFrameButton, DefaultEditFrameButtons, EditFrameDataSource, FieldEditButton, WebEditButton, EditButtonTypes, } from '@sitecore-jss/sitecore-jss/editing';
|
|
4
|
+
export { getContentStylesheetLink, getComponentLibraryStylesheetLinks, LayoutService, LayoutServiceData, LayoutServicePageState, LayoutServiceContext, LayoutServiceContextData, GraphQLLayoutService, RestLayoutService, RouteData, Field, Item, HtmlElementRendering, getChildPlaceholder, getFieldValue, ComponentRendering, ComponentFields, ComponentParams, EditMode, } from '@sitecore-jss/sitecore-jss/layout';
|
|
4
5
|
export { trackingApi, TrackingRequestOptions, CampaignInstance, GoalInstance, OutcomeInstance, EventInstance, PageViewInstance, } from '@sitecore-jss/sitecore-jss/tracking';
|
|
5
6
|
export { DictionaryPhrases, DictionaryService, GraphQLDictionaryService, RestDictionaryService, } from '@sitecore-jss/sitecore-jss/i18n';
|
|
6
7
|
export { GraphQLClientError, RetryStrategy, DefaultRetryStrategy, GraphQLRequestClientFactoryConfig, GraphQLRequestClient, } from '@sitecore-jss/sitecore-jss/graphql';
|
|
7
8
|
export { mediaApi } from '@sitecore-jss/sitecore-jss/media';
|
|
8
|
-
export { ComponentFactory } from './components/sharedTypes';
|
|
9
|
+
export { ComponentFactory, JssComponentType } from './components/sharedTypes';
|
|
9
10
|
export { Placeholder, PlaceholderComponentProps } from './components/Placeholder';
|
|
10
11
|
export { Image, ImageProps, ImageField, getEEMarkup, ImageFieldValue, ImageSizeParameters, } from './components/Image';
|
|
11
12
|
export { RichText, RichTextProps, RichTextPropTypes, RichTextField } from './components/RichText';
|
|
@@ -19,9 +20,13 @@ export { Link, LinkField, LinkFieldValue, LinkProps, LinkPropTypes } from './com
|
|
|
19
20
|
export { File, FileField } from './components/File';
|
|
20
21
|
export { VisitorIdentification } from './components/VisitorIdentification';
|
|
21
22
|
export { SitecoreContext, SitecoreContextState, SitecoreContextValue, SitecoreContextReactContext, } from './components/SitecoreContext';
|
|
22
|
-
export { withSitecoreContext, useSitecoreContext,
|
|
23
|
+
export { withSitecoreContext, useSitecoreContext, WithSitecoreContextOptions, WithSitecoreContextProps, WithSitecoreContextHocProps, } from './enhancers/withSitecoreContext';
|
|
23
24
|
export { withEditorChromes } from './enhancers/withEditorChromes';
|
|
24
25
|
export { withPlaceholder } from './enhancers/withPlaceholder';
|
|
25
26
|
export { withDatasourceCheck } from './enhancers/withDatasourceCheck';
|
|
26
27
|
export { EditFrameProps, EditFrame } from './components/EditFrame';
|
|
27
28
|
export { ComponentBuilder, ComponentBuilderConfig } from './ComponentBuilder';
|
|
29
|
+
export { withFieldMetadata } from './enhancers/withFieldMetadata';
|
|
30
|
+
export { withEmptyFieldEditingComponent } from './enhancers/withEmptyFieldEditingComponent';
|
|
31
|
+
export { EditingScripts } from './components/EditingScripts';
|
|
32
|
+
export { DefaultEmptyFieldEditingComponentText, DefaultEmptyFieldEditingComponentImage, } from './components/DefaultEmptyFieldEditingComponents';
|