@tinacms/graphql 0.0.0-df15737-20250329200825 → 0.0.0-e623534-20250401065516
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/builder/index.d.ts +2 -2
- package/dist/index.d.ts +32 -1
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/dist/resolver/media-utils.d.ts +3 -3
- package/package.json +3 -3
package/dist/builder/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
*/
|
|
4
4
|
import { LookupMapType } from '../database';
|
|
5
|
-
import type {
|
|
5
|
+
import type { FieldDefinitionNode, InlineFragmentNode, ObjectTypeDefinitionNode } from 'graphql';
|
|
6
6
|
import type { Collection, Template } from '@tinacms/schema-tools';
|
|
7
7
|
import { TinaSchema } from '@tinacms/schema-tools';
|
|
8
8
|
export declare const createBuilder: ({ tinaSchema, }: {
|
|
@@ -177,7 +177,7 @@ export declare class Builder {
|
|
|
177
177
|
* ```
|
|
178
178
|
*
|
|
179
179
|
* @public
|
|
180
|
-
* @param collection a
|
|
180
|
+
* @param collection a TinaCloud collection
|
|
181
181
|
*/
|
|
182
182
|
collectionFragment: (collection: Collection<true>) => Promise<import("graphql").FragmentDefinitionNode>;
|
|
183
183
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -1 +1,32 @@
|
|
|
1
|
-
|
|
1
|
+
import type { Schema, Collection, Template as TinaTemplate } from '@tinacms/schema-tools';
|
|
2
|
+
import { buildDotTinaFiles } from './build';
|
|
3
|
+
export { resolve } from './resolve';
|
|
4
|
+
export { transformDocumentIntoPayload } from './resolver';
|
|
5
|
+
export * from './resolver/error';
|
|
6
|
+
export { TinaLevelClient } from './level/tinaLevel';
|
|
7
|
+
export type { Level } from './database/level';
|
|
8
|
+
export type { QueryOptions, OnDeleteCallback, OnPutCallback, DatabaseArgs, GitProvider, CreateDatabase, } from './database';
|
|
9
|
+
export { Database, createDatabaseInternal, createDatabase, createLocalDatabase, } from './database';
|
|
10
|
+
import type { Config } from '@tinacms/schema-tools';
|
|
11
|
+
export { getChangedFiles, getSha, shaExists } from './git';
|
|
12
|
+
export * from './auth/utils';
|
|
13
|
+
export { sequential, assertShape } from './util';
|
|
14
|
+
export { loadAndParseWithAliases, stringifyFile, parseFile, scanAllContent, scanContentByPaths, transformDocument, } from './database/util';
|
|
15
|
+
export { createSchema } from './schema/createSchema';
|
|
16
|
+
export { buildDotTinaFiles };
|
|
17
|
+
export type DummyType = unknown;
|
|
18
|
+
export declare const buildSchema: (config: Config, flags?: string[]) => Promise<{
|
|
19
|
+
graphQLSchema: {
|
|
20
|
+
kind: "Document";
|
|
21
|
+
definitions: any;
|
|
22
|
+
};
|
|
23
|
+
tinaSchema: import("@tinacms/schema-tools").TinaSchema;
|
|
24
|
+
lookup: Record<string, import("./database").LookupMapType>;
|
|
25
|
+
fragDoc: string;
|
|
26
|
+
queryDoc: string;
|
|
27
|
+
}>;
|
|
28
|
+
export type TinaSchema = Schema;
|
|
29
|
+
export type { TinaTemplate, Schema, Collection };
|
|
30
|
+
export { FilesystemBridge, AuditFileSystemBridge, } from './database/bridge/filesystem';
|
|
31
|
+
export { IsomorphicBridge } from './database/bridge/isomorphic';
|
|
32
|
+
export type { Bridge } from './database/bridge';
|
package/dist/index.js
CHANGED
|
@@ -1914,7 +1914,7 @@ var Builder = class {
|
|
|
1914
1914
|
* ```
|
|
1915
1915
|
*
|
|
1916
1916
|
* @public
|
|
1917
|
-
* @param collection a
|
|
1917
|
+
* @param collection a TinaCloud collection
|
|
1918
1918
|
*/
|
|
1919
1919
|
this.collectionFragment = async (collection) => {
|
|
1920
1920
|
const name = NAMER.dataTypeName(collection.namespace);
|
package/dist/index.mjs
CHANGED
|
@@ -1847,7 +1847,7 @@ var Builder = class {
|
|
|
1847
1847
|
* ```
|
|
1848
1848
|
*
|
|
1849
1849
|
* @public
|
|
1850
|
-
* @param collection a
|
|
1850
|
+
* @param collection a TinaCloud collection
|
|
1851
1851
|
*/
|
|
1852
1852
|
this.collectionFragment = async (collection) => {
|
|
1853
1853
|
const name = NAMER.dataTypeName(collection.namespace);
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
2
|
|
|
3
3
|
*/
|
|
4
|
-
import type { GraphQLConfig } from '../types';
|
|
5
4
|
import type { Schema } from '@tinacms/schema-tools';
|
|
5
|
+
import type { GraphQLConfig } from '../types';
|
|
6
6
|
/**
|
|
7
|
-
* Strips away the
|
|
7
|
+
* Strips away the TinaCloud Asset URL from an `image` value
|
|
8
8
|
*
|
|
9
9
|
* @param {string | string[]} value
|
|
10
10
|
* @param {GraphQLConfig} config
|
|
@@ -12,7 +12,7 @@ import type { Schema } from '@tinacms/schema-tools';
|
|
|
12
12
|
*/
|
|
13
13
|
export declare const resolveMediaCloudToRelative: (value: string | string[], config: GraphQLConfig, schema: Schema<true>) => string | string[];
|
|
14
14
|
/**
|
|
15
|
-
* Adds
|
|
15
|
+
* Adds TinaCloud Asset URL to an `image` value
|
|
16
16
|
*
|
|
17
17
|
* @param {string | string[]} value
|
|
18
18
|
* @param {GraphQLConfig} config
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tinacms/graphql",
|
|
3
|
-
"version": "0.0.0-
|
|
3
|
+
"version": "0.0.0-e623534-20250401065516",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"module": "dist/index.mjs",
|
|
6
6
|
"typings": "dist/index.d.ts",
|
|
@@ -76,8 +76,8 @@
|
|
|
76
76
|
"vite": "^4.5.9",
|
|
77
77
|
"vitest": "^0.32.4",
|
|
78
78
|
"zod": "^3.24.2",
|
|
79
|
-
"@tinacms/
|
|
80
|
-
"@tinacms/
|
|
79
|
+
"@tinacms/scripts": "1.3.3",
|
|
80
|
+
"@tinacms/schema-tools": "1.7.2"
|
|
81
81
|
},
|
|
82
82
|
"scripts": {
|
|
83
83
|
"types": "pnpm tsc",
|