tinacms 1.2.2 → 1.3.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/admin/api.d.ts +3 -3
- package/dist/admin/components/FullscreenError.d.ts +5 -0
- package/dist/admin/components/GetCollection.d.ts +3 -3
- package/dist/admin/components/GetCollections.d.ts +1 -1
- package/dist/admin/plugins/route-mapping.d.ts +3 -3
- package/dist/admin/types.d.ts +3 -3
- package/dist/hooks/use-graphql-forms.d.ts +0 -12
- package/dist/index.d.ts +11 -20
- package/dist/index.es.js +335 -2425
- package/dist/index.js +337 -2428
- package/dist/internalClient/index.d.ts +3 -7
- package/dist/style.css +212 -188
- package/dist/tina-cms.d.ts +0 -5
- package/dist/types/cms.d.ts +3 -3
- package/dist/utils/index.d.ts +2 -2
- package/package.json +4 -4
- package/dist/hooks/formify/formify-utils.d.ts +0 -81
- package/dist/hooks/formify/formify.d.ts +0 -13
- package/dist/hooks/formify/index.d.ts +0 -16
- package/dist/hooks/formify/reducer.d.ts +0 -18
- package/dist/hooks/formify/spec/runner.d.ts +0 -4
- package/dist/hooks/formify/spec/schema.d.ts +0 -3
- package/dist/hooks/formify/spec/util.d.ts +0 -16
- package/dist/hooks/formify/types.d.ts +0 -166
- package/dist/hooks/formify/util.d.ts +0 -139
|
@@ -2,7 +2,7 @@ import { TokenObject } from '../auth/authenticate';
|
|
|
2
2
|
import { BranchData, EventBus } from '@tinacms/toolkit';
|
|
3
3
|
import { DocumentNode, GraphQLSchema } from 'graphql';
|
|
4
4
|
import gql from 'graphql-tag';
|
|
5
|
-
import { TinaSchema,
|
|
5
|
+
import { TinaSchema, Schema } from '@tinacms/schema-tools';
|
|
6
6
|
export declare type OnLoginFunc = (args: {
|
|
7
7
|
token: TokenObject;
|
|
8
8
|
}) => Promise<void>;
|
|
@@ -13,7 +13,7 @@ export declare type TinaIOConfig = {
|
|
|
13
13
|
contentApiUrlOverride?: string;
|
|
14
14
|
};
|
|
15
15
|
interface ServerOptions {
|
|
16
|
-
schema?:
|
|
16
|
+
schema?: Schema;
|
|
17
17
|
clientId: string;
|
|
18
18
|
branch: string;
|
|
19
19
|
customContentApiUrl?: string;
|
|
@@ -155,10 +155,6 @@ export declare class Client {
|
|
|
155
155
|
* }
|
|
156
156
|
*/
|
|
157
157
|
getOptimizedQuery: (documentNode: DocumentNode) => Promise<DocumentNode>;
|
|
158
|
-
requestWithForm<ReturnType>(query: (gqlTag: typeof gql) => DocumentNode, { variables, useUnstableFormify, }: {
|
|
159
|
-
variables: any;
|
|
160
|
-
useUnstableFormify?: boolean;
|
|
161
|
-
}): Promise<ReturnType>;
|
|
162
158
|
request<ReturnType>(query: ((gqlTag: typeof gql) => DocumentNode) | string, { variables }: {
|
|
163
159
|
variables: object;
|
|
164
160
|
}): Promise<ReturnType>;
|
|
@@ -229,7 +225,7 @@ export declare const DEFAULT_LOCAL_TINA_GQL_SERVER_URL = "http://localhost:4001/
|
|
|
229
225
|
export declare class LocalClient extends Client {
|
|
230
226
|
constructor(props?: {
|
|
231
227
|
customContentApiUrl?: string;
|
|
232
|
-
schema?:
|
|
228
|
+
schema?: Schema;
|
|
233
229
|
} & Omit<ServerOptions, 'clientId' | 'branch'>);
|
|
234
230
|
get isLocalMode(): boolean;
|
|
235
231
|
logout(): Promise<void>;
|