tinacms 3.2.0 → 3.3.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.
|
@@ -2,7 +2,12 @@ import { BranchData, EventBus } from '@tinacms/toolkit';
|
|
|
2
2
|
import { DocumentNode, GraphQLSchema } from 'graphql';
|
|
3
3
|
import { TokenObject } from '../auth/authenticate';
|
|
4
4
|
import { AuthProvider, Schema, TinaSchema } from '@tinacms/schema-tools';
|
|
5
|
-
import { SearchClient } from '@tinacms/search/index-client';
|
|
5
|
+
import { SearchClient, SearchOptions, SearchQueryResponse, IndexableDocument, FuzzySearchOptions } from '@tinacms/search/index-client';
|
|
6
|
+
interface TinaSearchConfig {
|
|
7
|
+
stopwordLanguages?: string[];
|
|
8
|
+
fuzzyEnabled?: boolean;
|
|
9
|
+
fuzzyOptions?: FuzzySearchOptions;
|
|
10
|
+
}
|
|
6
11
|
import gql from 'graphql-tag';
|
|
7
12
|
import { TinaCloudProject } from './types';
|
|
8
13
|
export * from './authProvider';
|
|
@@ -171,39 +176,31 @@ export declare class LocalClient extends Client {
|
|
|
171
176
|
get isLocalMode(): boolean;
|
|
172
177
|
}
|
|
173
178
|
export declare class TinaCMSSearchClient implements SearchClient {
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
nextCursor: string | null;
|
|
185
|
-
total: number;
|
|
186
|
-
prevCursor: string | null;
|
|
187
|
-
}>;
|
|
188
|
-
del(ids: string[]): Promise<any>;
|
|
189
|
-
put(docs: any[]): Promise<any>;
|
|
179
|
+
protected readonly client: Client;
|
|
180
|
+
protected readonly fuzzyEnabled: boolean;
|
|
181
|
+
protected readonly stopwordLanguages?: string[];
|
|
182
|
+
protected readonly defaultFuzzyOptions?: FuzzySearchOptions;
|
|
183
|
+
constructor(client: Client, tinaSearchConfig?: TinaSearchConfig);
|
|
184
|
+
protected getSearchBaseUrl(useFuzzy: boolean): string;
|
|
185
|
+
protected buildSearchUrl(query: string, options?: SearchOptions, useFuzzy?: boolean): string;
|
|
186
|
+
query(query: string, options?: SearchOptions): Promise<SearchQueryResponse>;
|
|
187
|
+
del(ids: string[]): Promise<void>;
|
|
188
|
+
put(docs: IndexableDocument[]): Promise<void>;
|
|
190
189
|
supportsClientSideIndexing(): boolean;
|
|
190
|
+
getDefaultLimit(): number;
|
|
191
191
|
}
|
|
192
192
|
export declare class LocalSearchClient implements SearchClient {
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
prevCursor: string | null;
|
|
203
|
-
}>;
|
|
204
|
-
del(ids: string[]): Promise<any>;
|
|
205
|
-
put(docs: any[]): Promise<any>;
|
|
193
|
+
protected readonly client: Client;
|
|
194
|
+
protected readonly fuzzyEnabled: boolean;
|
|
195
|
+
protected readonly defaultFuzzyOptions?: FuzzySearchOptions;
|
|
196
|
+
constructor(client: Client, tinaSearchConfig?: Omit<TinaSearchConfig, 'stopwordLanguages'>);
|
|
197
|
+
protected getSearchBaseUrl(useFuzzy: boolean): string;
|
|
198
|
+
protected buildSearchUrl(query: string, options?: SearchOptions, useFuzzy?: boolean): string;
|
|
199
|
+
query(query: string, options?: SearchOptions): Promise<SearchQueryResponse>;
|
|
200
|
+
del(_ids: string[]): Promise<void>;
|
|
201
|
+
put(_docs: IndexableDocument[]): Promise<void>;
|
|
206
202
|
supportsClientSideIndexing(): boolean;
|
|
203
|
+
getDefaultLimit(): number;
|
|
207
204
|
}
|
|
208
205
|
export type PackageVersionInfo = {
|
|
209
206
|
version: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import 'moment-timezone';
|
|
2
2
|
import * as React from 'react';
|
|
3
|
-
import { DayPickerProps } from 'react-day-picker';
|
|
3
|
+
import { type DayPickerProps } from 'react-day-picker';
|
|
4
4
|
type TimePickerType = 'minutes' | 'seconds' | 'hours' | '12hours';
|
|
5
5
|
type Period = 'AM' | 'PM';
|
|
6
6
|
declare const formatCurrentDate: ({ dateFormat, timeFormat, displayDate, }: {
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
+
import { CodeLinePlugin } from '@udecode/plate-code-block/react';
|
|
1
2
|
import React from 'react';
|
|
2
3
|
import { CodeLeaf } from '../../components/plate-ui/code-leaf';
|
|
3
4
|
import { CodeSyntaxLeaf } from '../../components/plate-ui/code-syntax-leaf';
|
|
4
5
|
import { HrElement } from '../../components/plate-ui/hr-element';
|
|
5
6
|
import { LinkElement } from '../../components/plate-ui/link-element';
|
|
6
7
|
export declare const Components: () => {
|
|
7
|
-
[
|
|
8
|
+
[CodeLinePlugin.key]: React.ForwardRefExoticComponent<Omit<Omit<import("@udecode/plate/react").PlateElementProps<import("@udecode/plate").TElement, import("@udecode/plate").AnyPluginConfig>, keyof {
|
|
8
9
|
className?: string;
|
|
9
10
|
style?: React.CSSProperties;
|
|
10
11
|
}> & import("@udecode/plate").BasePluginContext<import("@udecode/plate").AnyPluginConfig> & {
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "tinacms",
|
|
3
3
|
"type": "module",
|
|
4
4
|
"typings": "dist/index.d.ts",
|
|
5
|
-
"version": "3.
|
|
5
|
+
"version": "3.3.0",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"module": "./dist/index.js",
|
|
8
8
|
"exports": {
|
|
@@ -110,9 +110,9 @@
|
|
|
110
110
|
"webfontloader": "1.6.28",
|
|
111
111
|
"yup": "^1.6.1",
|
|
112
112
|
"zod": "^3.24.2",
|
|
113
|
-
"@tinacms/mdx": "2.0.
|
|
114
|
-
"@tinacms/
|
|
115
|
-
"@tinacms/
|
|
113
|
+
"@tinacms/mdx": "2.0.3",
|
|
114
|
+
"@tinacms/schema-tools": "2.3.0",
|
|
115
|
+
"@tinacms/search": "1.2.0"
|
|
116
116
|
},
|
|
117
117
|
"devDependencies": {
|
|
118
118
|
"@graphql-tools/utils": "^10.8.1",
|