@griddo/core 11.4.7-rc.1 → 11.4.7-rc.2

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.
@@ -1,4 +1,4 @@
1
- import * as React from "react";
1
+ /// <reference types="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
- }): React.JSX.Element;
20
+ }): JSX.Element;
21
21
  export { CloudinaryBackgroundImage };
@@ -1,7 +1,6 @@
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";
5
4
  import "react-aspect-ratio/aspect-ratio.css";
6
5
  export declare const internalDefaults: {
7
6
  domain: string;
@@ -24,7 +23,7 @@ export declare const internalDefaults: {
24
23
  *
25
24
  * @deprecated This component will be removed from Griddo in the future.
26
25
  */
27
- declare function CloudinaryImage(props: CloudinaryImageProps): React.JSX.Element;
26
+ declare function CloudinaryImage(props: CloudinaryImageProps): JSX.Element;
28
27
  export interface CloudinaryImageProps {
29
28
  alt?: string;
30
29
  width?: string;
@@ -1,9 +1,9 @@
1
- import * as React from "react";
1
+ /// <reference types="react" />
2
2
  import "./style.css";
3
3
  /**
4
4
  * <Wrapper>
5
5
  */
6
- declare const Wrapper: (props: WrapperProps) => React.JSX.Element;
6
+ declare const Wrapper: (props: WrapperProps) => JSX.Element;
7
7
  interface WrapperProps {
8
8
  selectedEditorID: number | null;
9
9
  editorID?: number;
@@ -1,4 +1,3 @@
1
1
  import type { SVGProps } from "react";
2
- import * as React from "react";
3
- declare const SvgDelete: (props: SVGProps<SVGSVGElement>) => React.JSX.Element;
2
+ declare const SvgDelete: (props: SVGProps<SVGSVGElement>) => JSX.Element;
4
3
  export default SvgDelete;
@@ -1,4 +1,3 @@
1
1
  import type { SVGProps } from "react";
2
- import * as React from "react";
3
- declare const SvgDuplicate: (props: SVGProps<SVGSVGElement>) => React.JSX.Element;
2
+ declare const SvgDuplicate: (props: SVGProps<SVGSVGElement>) => JSX.Element;
4
3
  export default SvgDuplicate;
@@ -1,4 +1,4 @@
1
- import * as React from "react";
1
+ /// <reference types="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) => React.JSX.Element;
10
+ declare const FormWrapper: (props: FormWrapperProps) => JSX.Element;
11
11
  export { FormWrapper };
@@ -1,5 +1,4 @@
1
1
  import type { FC } from "react";
2
- import * as React from "react";
3
2
  export interface ComponentProps {
4
3
  libComponents: Record<string, any>;
5
4
  editorID?: number;
@@ -24,7 +23,7 @@ export interface ComponentProps {
24
23
  * {{ component: 'Hero', ...props }}
25
24
  * />
26
25
  */
27
- declare function Component({ libComponents, ...props }: ComponentProps): React.JSX.Element | null;
26
+ declare function Component({ libComponents, ...props }: ComponentProps): JSX.Element | null;
28
27
  declare function getComponent(components: Record<string, FC<Omit<ComponentProps, "libComponents">>>, props: {
29
28
  component: string;
30
29
  [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: () => 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;
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;
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,6 +1,5 @@
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";
4
3
  /**
5
4
  * Renders a router component from internal/external Griddo link.
6
5
  * You may want to use `<GriddoLink>` instead of an `<a>` tag for internal Griddo pages.
@@ -12,7 +11,7 @@ import * as React from "react";
12
11
  * url={ linkToURL: 'https://...' }
13
12
  * />
14
13
  */
15
- declare function GriddoLink({ activeClassName, activeStyle, style, children, getProps, partiallyActive, state, url, title, className, ...props }: GriddoLinkProps): React.JSX.Element;
14
+ declare function GriddoLink({ activeClassName, activeStyle, style, children, getProps, partiallyActive, state, url, title, className, ...props }: GriddoLinkProps): JSX.Element;
16
15
  export interface HLocation<S = unknown> {
17
16
  pathname: string;
18
17
  search: string;
@@ -50,7 +49,7 @@ export interface GriddoLinkProps extends Omit<ComponentPropsWithoutRef<"a">, "hr
50
49
  /** @deprecated If using React >= 16.4, use ref instead. */
51
50
  innerRef?: Ref<HTMLAnchorElement> | undefined;
52
51
  /** If using React >=16.4, Link will forward its ref to you. */
53
- ref?: Ref<HTMLAnchorElement> | undefined;
52
+ ref?: (node: HTMLAnchorElement | null) => ReactNode;
54
53
  /** onCLick event */
55
54
  onClick?: (event: MouseEvent<HTMLAnchorElement>) => void;
56
55
  children?: ReactNode;
@@ -1,4 +1,4 @@
1
- import * as React from "react";
1
+ /// <reference types="react" />
2
2
  /**
3
3
  * Inject a google structured data with a `script` tag.
4
4
  *
@@ -7,4 +7,4 @@ import * as React from "react";
7
7
  */
8
8
  export declare function LdJson(props: {
9
9
  data: Record<string, unknown>;
10
- }): React.JSX.Element;
10
+ }): JSX.Element;
@@ -1,5 +1,5 @@
1
+ /// <reference types="react" />
1
2
  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): React.JSX.Element;
10
+ declare function Link(props: LinkProps): JSX.Element;
11
11
  interface LinkProps {
12
12
  url: Url;
13
13
  linkProp?: string;
@@ -1,11 +1,10 @@
1
1
  import type { Page } from "../../types/core";
2
2
  import type { FC } from "react";
3
- import * as React from "react";
4
3
  import { type ComponentProps } from "../Component";
5
4
  /**
6
5
  * <ModulePreview>
7
6
  */
8
- declare function ModulePreview(props: ModulePreviewProps): React.JSX.Element | null;
7
+ declare function ModulePreview(props: ModulePreviewProps): JSX.Element | null;
9
8
  export interface ModulePreviewProps {
10
9
  component: string;
11
10
  content: Pick<Page, "title" | "breadcrumb" | "fullPath" | "fullUrl" | "siteSlug" | "template" | "origin" | "site" | "modified" | "published" | "structuredData" | "structuredDataContent" | "dimensions" | "isHome">;
@@ -1,11 +1,10 @@
1
1
  import type { Page } from "../../types/core";
2
2
  import type { FC } from "react";
3
- import * as React from "react";
4
3
  import { type ComponentProps } from "../Component";
5
4
  /**
6
5
  * <PageComponent>
7
6
  */
8
- declare function PageComponent(props: PageProps): React.JSX.Element;
7
+ declare function PageComponent(props: PageProps): JSX.Element;
9
8
  export interface PageProps extends Pick<Page, "apiUrl" | "footer" | "header" | "languageId" | "pageLanguages" | "siteMetadata"> {
10
9
  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">;
11
10
  library: {
@@ -1,10 +1,10 @@
1
- import * as React from "react";
1
+ /// <reference types="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): React.JSX.Element;
7
+ declare function Preview(props: PreviewProps): 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): React.JSX.Element;
6
+ declare function NavigationProvider(props: NavigationProviderProps): 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) => React.JSX.Element;
6
+ declare const SessionProvider: (props: ProviderProps) => 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): React.JSX.Element;
8
+ declare function SiteProvider(props: SiteProviderProps): JSX.Element;
9
9
  interface SiteContextProps extends Site {
10
10
  [key: string]: unknown;
11
11
  linkComponent: (props: GriddoLinkProps) => JSX.Element;