tinacms 1.5.8 → 1.5.9

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.
@@ -3,6 +3,7 @@ import { BranchData, EventBus } from '@tinacms/toolkit';
3
3
  import { DocumentNode, GraphQLSchema } from 'graphql';
4
4
  import gql from 'graphql-tag';
5
5
  import { TinaSchema, Schema } from '@tinacms/schema-tools';
6
+ import { SearchClient } from '@tinacms/search/dist/index-client';
6
7
  export declare type OnLoginFunc = (args: {
7
8
  token: TokenObject;
8
9
  }) => Promise<void>;
@@ -117,7 +118,6 @@ export declare class Client {
117
118
  schema?: TinaSchema;
118
119
  clientId: string;
119
120
  contentApiBase: string;
120
- query: string;
121
121
  tinaGraphQLVersion: string;
122
122
  setToken: (_token: TokenObject) => void;
123
123
  private getToken;
@@ -128,6 +128,7 @@ export declare class Client {
128
128
  constructor({ tokenStorage, ...options }: ServerOptions);
129
129
  get isLocalMode(): boolean;
130
130
  setBranch(branchName: string): void;
131
+ getBranch(): string;
131
132
  addPendingContent: (props: any) => Promise<unknown>;
132
133
  getSchema: () => Promise<GraphQLSchema>;
133
134
  /**
@@ -234,4 +235,36 @@ export declare class LocalClient extends Client {
234
235
  }>;
235
236
  getUser(): Promise<boolean>;
236
237
  }
238
+ export declare class TinaCMSSearchClient implements SearchClient {
239
+ private client;
240
+ constructor(client: Client);
241
+ query(query: string, options?: {
242
+ limit?: number;
243
+ cursor?: string;
244
+ }): Promise<{
245
+ results: any[];
246
+ nextCursor: string | null;
247
+ total: number;
248
+ prevCursor: string | null;
249
+ }>;
250
+ del(ids: string[]): Promise<any>;
251
+ put(docs: any[]): Promise<any>;
252
+ supportsClientSideIndexing(): boolean;
253
+ }
254
+ export declare class LocalSearchClient implements SearchClient {
255
+ private client;
256
+ constructor(client: Client);
257
+ query(query: string, options?: {
258
+ limit?: number;
259
+ cursor?: string;
260
+ }): Promise<{
261
+ results: any[];
262
+ nextCursor: string | null;
263
+ total: number;
264
+ prevCursor: string | null;
265
+ }>;
266
+ del(ids: string[]): Promise<any>;
267
+ put(docs: any[]): Promise<any>;
268
+ supportsClientSideIndexing(): boolean;
269
+ }
237
270
  export {};
package/dist/style.css CHANGED
@@ -489,6 +489,9 @@
489
489
  .tina-tailwind .w-full {
490
490
  width: 100%;
491
491
  }
492
+ .tina-tailwind .min-w-\[200px\] {
493
+ min-width: 200px;
494
+ }
492
495
  .tina-tailwind .max-w-0 {
493
496
  max-width: 0rem;
494
497
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tinacms",
3
- "version": "1.5.8",
3
+ "version": "1.5.9",
4
4
  "main": "dist/index.js",
5
5
  "module": "./dist/index.es.js",
6
6
  "exports": {
@@ -56,9 +56,10 @@
56
56
  "@headlessui/react": "^1.5.0",
57
57
  "@heroicons/react": "^1.0.4",
58
58
  "@react-hook/window-size": "^3.0.7",
59
- "@tinacms/schema-tools": "1.4.4",
59
+ "@tinacms/search": "1.0.1",
60
+ "@tinacms/schema-tools": "1.4.5",
60
61
  "@tinacms/sharedctx": "1.0.1",
61
- "@tinacms/toolkit": "1.7.4",
62
+ "@tinacms/toolkit": "1.7.5",
62
63
  "crypto-js": "^4.0.0",
63
64
  "encoding": "0.1.13",
64
65
  "fetch-ponyfill": "^7.1.0",