tinacms 2.8.2 → 2.9.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.
@@ -9,7 +9,7 @@ import type { TinaCMSProviderDefaultProps } from './types/cms';
9
9
  export declare const TinaCMSProvider2: ({ query, documentCreatorCallback, formifyCallback, schema, ...props }: TinaCMSProviderDefaultProps) => React.JSX.Element;
10
10
  export type DocumentCreatorCallback = Parameters<typeof useDocumentCreatorPlugin>[0];
11
11
  /**
12
- * @deprecated v0.62.0: Use `staticRequest` and a "try catch" block instead. see https://tina.io/docs/features/data-fetching/#querying-tina-content-in-nextjs for more details
12
+ * @deprecated v0.62.0: Use `staticRequest` and a "try catch" block instead. see https://tina.io/docs/r/content-api-overview for more details
13
13
  *
14
14
  * A convenience function which makes a GraphQL request
15
15
  * to a local GraphQL server and ensures the response fits
@@ -7,6 +7,16 @@ interface MediaItemProps {
7
7
  onClick(_item: Media | false): void;
8
8
  active: boolean;
9
9
  }
10
+ export declare const checkerboardStyle: {
11
+ backgroundImage: string;
12
+ backgroundSize: string;
13
+ backgroundPosition: string;
14
+ };
15
+ export declare const smallCheckerboardStyle: {
16
+ backgroundImage: string;
17
+ backgroundSize: string;
18
+ backgroundPosition: string;
19
+ };
10
20
  export declare function ListMediaItem({ item, onClick, active }: MediaItemProps): React.JSX.Element;
11
21
  export declare function GridMediaItem({ item, active, onClick }: MediaItemProps): React.JSX.Element;
12
22
  export {};
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
2
  export interface ModalHeaderProps {
3
- children: React.ReactChild | React.ReactChild[];
3
+ children: React.ReactNode;
4
4
  close?(): void;
5
5
  }
6
6
  export declare const ModalHeader: ({ children, close }: ModalHeaderProps) => React.JSX.Element;
@@ -0,0 +1,5 @@
1
+ import * as React from 'react';
2
+ export declare const Badge: ({ children, calloutStyle, className, ...props }: {
3
+ children?: React.ReactNode;
4
+ calloutStyle?: "warning" | "info" | "success" | "error";
5
+ } & React.HTMLProps<HTMLDivElement>) => React.JSX.Element;
@@ -0,0 +1,5 @@
1
+ import * as React from 'react';
2
+ export declare const Callout: ({ children, calloutStyle, className, ...props }: {
3
+ children?: React.ReactNode;
4
+ calloutStyle?: "warning" | "info" | "success" | "error";
5
+ } & React.HTMLProps<HTMLDivElement>) => React.JSX.Element;
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
2
  export interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
3
- variant?: 'primary' | 'secondary' | 'white' | 'ghost' | 'danger' | 'custom';
3
+ variant?: 'primary' | 'secondary' | 'white' | 'ghost' | 'danger' | 'accent' | 'custom';
4
4
  as?: React.ElementType;
5
5
  href?: string;
6
6
  target?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tinacms",
3
- "version": "2.8.2",
3
+ "version": "2.9.0",
4
4
  "main": "dist/index.js",
5
5
  "module": "./dist/index.mjs",
6
6
  "exports": {
@@ -1,5 +0,0 @@
1
- import * as React from 'react';
2
- export declare const Alert: ({ children, alertStyle, className, ...props }: {
3
- children?: React.ReactNode;
4
- alertStyle?: "warning";
5
- } & React.HTMLProps<HTMLDivElement>) => React.JSX.Element;