@griddo/core 11.4.8 → 11.4.9-rc.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/components/CloudinaryBackgroundImage/index.d.ts +2 -2
- package/dist/components/CloudinaryImage/index.d.ts +2 -1
- package/dist/components/Component/ComponentWrapper/index.d.ts +2 -2
- package/dist/components/Component/ComponentWrapper/svg/Delete.d.ts +2 -1
- package/dist/components/Component/ComponentWrapper/svg/Duplicate.d.ts +2 -1
- package/dist/components/Component/FormWrapper/index.d.ts +2 -2
- package/dist/components/Component/index.d.ts +2 -1
- package/dist/components/GriddoImageExp/GriddoImageExp.stories.d.ts +7 -7
- package/dist/components/GriddoLink/index.d.ts +3 -2
- package/dist/components/LdJson/index.d.ts +2 -2
- package/dist/components/Link/index.d.ts +2 -2
- package/dist/components/ModulePreview/index.d.ts +2 -1
- package/dist/components/Page/index.d.ts +2 -1
- package/dist/components/Preview/index.d.ts +2 -2
- package/dist/contexts/Navigation/index.d.ts +1 -1
- package/dist/contexts/Session/index.d.ts +1 -1
- package/dist/contexts/Site/index.d.ts +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import * as React from "react";
|
|
2
2
|
import "./styles.css";
|
|
3
3
|
/**
|
|
4
4
|
* @deprecated This component will be removed from Griddo in the future.
|
|
@@ -17,5 +17,5 @@ declare function CloudinaryBackgroundImage({ backgroundRepeat, backgroundSize, b
|
|
|
17
17
|
src: any;
|
|
18
18
|
customLazyClassName?: string | undefined;
|
|
19
19
|
lazy: any;
|
|
20
|
-
}): JSX.Element;
|
|
20
|
+
}): React.JSX.Element;
|
|
21
21
|
export { CloudinaryBackgroundImage };
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { CloudinaryImageCrop, CloudinaryImageFormat, CloudinaryResponsiveImageProps } from "../../hooks/useImage";
|
|
2
2
|
import type { ImageDecoding, ImageLoading } from "../../types/core";
|
|
3
3
|
import type { CSSProperties } from "react";
|
|
4
|
+
import * as React from "react";
|
|
4
5
|
import "react-aspect-ratio/aspect-ratio.css";
|
|
5
6
|
export declare const internalDefaults: {
|
|
6
7
|
domain: string;
|
|
@@ -23,7 +24,7 @@ export declare const internalDefaults: {
|
|
|
23
24
|
*
|
|
24
25
|
* @deprecated This component will be removed from Griddo in the future.
|
|
25
26
|
*/
|
|
26
|
-
declare function CloudinaryImage(props: CloudinaryImageProps): JSX.Element;
|
|
27
|
+
declare function CloudinaryImage(props: CloudinaryImageProps): React.JSX.Element;
|
|
27
28
|
export interface CloudinaryImageProps {
|
|
28
29
|
alt?: string;
|
|
29
30
|
width?: string;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
import * as React from "react";
|
|
2
2
|
import "./style.css";
|
|
3
3
|
/**
|
|
4
4
|
* <Wrapper>
|
|
5
5
|
*/
|
|
6
|
-
declare const Wrapper: (props: WrapperProps) => JSX.Element;
|
|
6
|
+
declare const Wrapper: (props: WrapperProps) => React.JSX.Element;
|
|
7
7
|
interface WrapperProps {
|
|
8
8
|
selectedEditorID: number | null;
|
|
9
9
|
editorID?: number;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import * as React from "react";
|
|
2
2
|
import "./styles.css";
|
|
3
3
|
interface FormWrapperProps {
|
|
4
4
|
selectedEditorID: number | null;
|
|
@@ -7,5 +7,5 @@ interface FormWrapperProps {
|
|
|
7
7
|
isSelectionAllowed: boolean;
|
|
8
8
|
children: JSX.Element;
|
|
9
9
|
}
|
|
10
|
-
declare const FormWrapper: (props: FormWrapperProps) => JSX.Element;
|
|
10
|
+
declare const FormWrapper: (props: FormWrapperProps) => React.JSX.Element;
|
|
11
11
|
export { FormWrapper };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { FC } from "react";
|
|
2
|
+
import * as React from "react";
|
|
2
3
|
export interface ComponentProps {
|
|
3
4
|
libComponents: Record<string, any>;
|
|
4
5
|
editorID?: number;
|
|
@@ -23,7 +24,7 @@ export interface ComponentProps {
|
|
|
23
24
|
* {{ component: 'Hero', ...props }}
|
|
24
25
|
* />
|
|
25
26
|
*/
|
|
26
|
-
declare function Component({ libComponents, ...props }: ComponentProps): JSX.Element | null;
|
|
27
|
+
declare function Component({ libComponents, ...props }: ComponentProps): React.JSX.Element | null;
|
|
27
28
|
declare function getComponent(components: Record<string, FC<Omit<ComponentProps, "libComponents">>>, props: {
|
|
28
29
|
component: string;
|
|
29
30
|
[key: string]: unknown;
|
|
@@ -6,13 +6,13 @@ export declare const IMAGES: {
|
|
|
6
6
|
light: string;
|
|
7
7
|
dark: string;
|
|
8
8
|
};
|
|
9
|
-
export declare const FromStarter: () => JSX.Element;
|
|
10
|
-
export declare const OmitEveryWidthHeight: () => JSX.Element;
|
|
11
|
-
export declare const OnlyArtDirection: () => JSX.Element;
|
|
12
|
-
export declare const Simple: () => JSX.Element;
|
|
13
|
-
export declare const WithSizes: () => JSX.Element;
|
|
14
|
-
export declare const OnlyWidth: () => JSX.Element;
|
|
15
|
-
export declare const ArtDirection: () => JSX.Element;
|
|
9
|
+
export declare const FromStarter: () => React.JSX.Element;
|
|
10
|
+
export declare const OmitEveryWidthHeight: () => React.JSX.Element;
|
|
11
|
+
export declare const OnlyArtDirection: () => React.JSX.Element;
|
|
12
|
+
export declare const Simple: () => React.JSX.Element;
|
|
13
|
+
export declare const WithSizes: () => React.JSX.Element;
|
|
14
|
+
export declare const OnlyWidth: () => React.JSX.Element;
|
|
15
|
+
export declare const ArtDirection: () => React.JSX.Element;
|
|
16
16
|
declare const _default: {
|
|
17
17
|
title: string;
|
|
18
18
|
component: React.ForwardRefExoticComponent<(Omit<import("./types").GriddoImageSvgExperimental, "ref"> | Omit<import("./types").GriddoImageGifExperimental, "ref"> | Omit<import("./types").GriddoImageJpgWebpAvifExperimental, "ref">) & React.RefAttributes<HTMLPictureElement>>;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { Url } from "../../types/api-response-fields";
|
|
2
2
|
import type { ComponentPropsWithoutRef, CSSProperties, MouseEvent, ReactNode, Ref } from "react";
|
|
3
|
+
import * as React from "react";
|
|
3
4
|
/**
|
|
4
5
|
* Renders a router component from internal/external Griddo link.
|
|
5
6
|
* You may want to use `<GriddoLink>` instead of an `<a>` tag for internal Griddo pages.
|
|
@@ -11,7 +12,7 @@ import type { ComponentPropsWithoutRef, CSSProperties, MouseEvent, ReactNode, Re
|
|
|
11
12
|
* url={ linkToURL: 'https://...' }
|
|
12
13
|
* />
|
|
13
14
|
*/
|
|
14
|
-
declare function GriddoLink({ activeClassName, activeStyle, style, children, getProps, partiallyActive, state, url, title, className, ...props }: GriddoLinkProps): JSX.Element;
|
|
15
|
+
declare function GriddoLink({ activeClassName, activeStyle, style, children, getProps, partiallyActive, state, url, title, className, ...props }: GriddoLinkProps): React.JSX.Element;
|
|
15
16
|
export interface HLocation<S = unknown> {
|
|
16
17
|
pathname: string;
|
|
17
18
|
search: string;
|
|
@@ -49,7 +50,7 @@ export interface GriddoLinkProps extends Omit<ComponentPropsWithoutRef<"a">, "hr
|
|
|
49
50
|
/** @deprecated If using React >= 16.4, use ref instead. */
|
|
50
51
|
innerRef?: Ref<HTMLAnchorElement> | undefined;
|
|
51
52
|
/** If using React >=16.4, Link will forward its ref to you. */
|
|
52
|
-
ref?:
|
|
53
|
+
ref?: Ref<HTMLAnchorElement> | undefined;
|
|
53
54
|
/** onCLick event */
|
|
54
55
|
onClick?: (event: MouseEvent<HTMLAnchorElement>) => void;
|
|
55
56
|
children?: ReactNode;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import * as React from "react";
|
|
2
2
|
/**
|
|
3
3
|
* Inject a google structured data with a `script` tag.
|
|
4
4
|
*
|
|
@@ -7,4 +7,4 @@
|
|
|
7
7
|
*/
|
|
8
8
|
export declare function LdJson(props: {
|
|
9
9
|
data: Record<string, unknown>;
|
|
10
|
-
}): JSX.Element;
|
|
10
|
+
}): React.JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import type { Url } from "../../types/api-response-fields";
|
|
2
|
+
import * as React from "react";
|
|
3
3
|
export interface GetLinkProps {
|
|
4
4
|
href?: string;
|
|
5
5
|
linkToURL?: string;
|
|
@@ -7,7 +7,7 @@ export interface GetLinkProps {
|
|
|
7
7
|
/**
|
|
8
8
|
* @deprecated This component will be removed from Griddo in the future.
|
|
9
9
|
*/
|
|
10
|
-
declare function Link(props: LinkProps): JSX.Element;
|
|
10
|
+
declare function Link(props: LinkProps): React.JSX.Element;
|
|
11
11
|
interface LinkProps {
|
|
12
12
|
url: Url;
|
|
13
13
|
linkProp?: string;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import type { Page } from "../../types/core";
|
|
2
2
|
import type { FC } from "react";
|
|
3
|
+
import * as React from "react";
|
|
3
4
|
import { type ComponentProps } from "../Component";
|
|
4
5
|
/**
|
|
5
6
|
* <ModulePreview>
|
|
6
7
|
*/
|
|
7
|
-
declare function ModulePreview(props: ModulePreviewProps): JSX.Element | null;
|
|
8
|
+
declare function ModulePreview(props: ModulePreviewProps): React.JSX.Element | null;
|
|
8
9
|
export interface ModulePreviewProps {
|
|
9
10
|
component: string;
|
|
10
11
|
content: Pick<Page, "title" | "breadcrumb" | "fullPath" | "fullUrl" | "siteSlug" | "template" | "origin" | "site" | "modified" | "published" | "structuredData" | "structuredDataContent" | "dimensions" | "isHome">;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import type { Page } from "../../types/core";
|
|
2
2
|
import type { FC } from "react";
|
|
3
|
+
import * as React from "react";
|
|
3
4
|
import { type ComponentProps } from "../Component";
|
|
4
5
|
/**
|
|
5
6
|
* <PageComponent>
|
|
6
7
|
*/
|
|
7
|
-
declare function PageComponent(props: PageProps): JSX.Element;
|
|
8
|
+
declare function PageComponent(props: PageProps): React.JSX.Element;
|
|
8
9
|
export interface PageProps extends Pick<Page, "apiUrl" | "footer" | "header" | "languageId" | "pageLanguages" | "siteMetadata"> {
|
|
9
10
|
content: Pick<Page, "component" | "breadcrumb" | "canonicalURL" | "dimensions" | "footerTheme" | "fullPath" | "fullUrl" | "headerTheme" | "id" | "isHome" | "isIndexed" | "metaDescription" | "metasAdvanced" | "metaTitle" | "modified" | "origin" | "published" | "site" | "siteSlug" | "socialDescription" | "socialImage" | "socialTitle" | "structuredData" | "structuredDataContent" | "template" | "theme" | "title">;
|
|
10
11
|
library: {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
|
|
1
|
+
import * as React from "react";
|
|
2
2
|
import { type ModulePreviewProps } from "../ModulePreview";
|
|
3
3
|
import { type PageProps } from "../Page";
|
|
4
4
|
/**
|
|
5
5
|
* <Preview>
|
|
6
6
|
*/
|
|
7
|
-
declare function Preview(props: PreviewProps): JSX.Element;
|
|
7
|
+
declare function Preview(props: PreviewProps): React.JSX.Element;
|
|
8
8
|
export type PreviewProps = {
|
|
9
9
|
isPage?: boolean;
|
|
10
10
|
} & (ModulePreviewProps | PageProps);
|
|
@@ -3,7 +3,7 @@ declare const NavigationContext: React.Context<NavigationContextProps | null>;
|
|
|
3
3
|
/**
|
|
4
4
|
* <NavigationProvider>
|
|
5
5
|
*/
|
|
6
|
-
declare function NavigationProvider(props: NavigationProviderProps): JSX.Element;
|
|
6
|
+
declare function NavigationProvider(props: NavigationProviderProps): React.JSX.Element;
|
|
7
7
|
interface NavigationContextProps {
|
|
8
8
|
isNavigation: true;
|
|
9
9
|
}
|
|
@@ -3,7 +3,7 @@ declare const SessionContext: React.Context<ProviderValue>;
|
|
|
3
3
|
/**
|
|
4
4
|
* <SessionProvider>
|
|
5
5
|
*/
|
|
6
|
-
declare const SessionProvider: (props: ProviderProps) => JSX.Element;
|
|
6
|
+
declare const SessionProvider: (props: ProviderProps) => React.JSX.Element;
|
|
7
7
|
interface ProviderProps {
|
|
8
8
|
children: JSX.Element | null;
|
|
9
9
|
}
|
|
@@ -5,7 +5,7 @@ declare const SiteContext: React.Context<SiteContextProps>;
|
|
|
5
5
|
/**
|
|
6
6
|
* <SiteProvider>
|
|
7
7
|
*/
|
|
8
|
-
declare function SiteProvider(props: SiteProviderProps): JSX.Element;
|
|
8
|
+
declare function SiteProvider(props: SiteProviderProps): React.JSX.Element;
|
|
9
9
|
interface SiteContextProps extends Site {
|
|
10
10
|
[key: string]: unknown;
|
|
11
11
|
linkComponent: (props: GriddoLinkProps) => JSX.Element;
|