tinacms 2.8.1 → 2.8.2
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 -0
- package/dist/index.js +55990 -55775
- package/dist/index.mjs +55992 -55777
- package/dist/internalClient/index.d.ts +19 -0
- package/dist/toolkit/components/ProgressBar.d.ts +11 -0
- package/dist/toolkit/fields/plugins/group-list-field-plugin.d.ts +1 -0
- package/dist/toolkit/fields/plugins/list-field-plugin.d.ts +1 -0
- package/dist/toolkit/form-builder/editorial-workflow-constants.d.ts +17 -0
- package/package.json +4 -4
- package/dist/admin/pages/IndexingPage.d.ts +0 -2
|
@@ -142,6 +142,25 @@ export declare class Client {
|
|
|
142
142
|
usingProtectedBranch(): boolean;
|
|
143
143
|
createBranch({ baseBranch, branchName }: BranchData): Promise<string>;
|
|
144
144
|
getLatestVersion(): Promise<LatestVersionResponse>;
|
|
145
|
+
/**
|
|
146
|
+
* Initiate and poll for the results of an editorial workflow operation
|
|
147
|
+
*
|
|
148
|
+
* @param options Editorial workflow options
|
|
149
|
+
* @returns Object with branch and PR info when complete
|
|
150
|
+
*/
|
|
151
|
+
executeEditorialWorkflow(options: {
|
|
152
|
+
branchName: string;
|
|
153
|
+
baseBranch: string;
|
|
154
|
+
prTitle?: string;
|
|
155
|
+
graphQLContentOp?: {
|
|
156
|
+
query: string;
|
|
157
|
+
variables: Record<string, unknown>;
|
|
158
|
+
};
|
|
159
|
+
onStatusUpdate?: (status: {
|
|
160
|
+
status: string;
|
|
161
|
+
message?: string;
|
|
162
|
+
}) => void;
|
|
163
|
+
}): Promise<any>;
|
|
145
164
|
}
|
|
146
165
|
export declare const DEFAULT_LOCAL_TINA_GQL_SERVER_URL = "http://localhost:4001/graphql";
|
|
147
166
|
export declare class LocalClient extends Client {
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
interface ProgressBarProps {
|
|
3
|
+
/** Progress percentage (0-100) */
|
|
4
|
+
progress: number;
|
|
5
|
+
/** Additional CSS classes */
|
|
6
|
+
className?: string;
|
|
7
|
+
/** Color of the progress bar */
|
|
8
|
+
color?: 'blue' | 'green';
|
|
9
|
+
}
|
|
10
|
+
export declare const ProgressBar: React.FC<ProgressBarProps>;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Editorial Workflow Status Constants
|
|
3
|
+
* These match the server-side constants in tinacloud/js/content-api/src/editorial-workflow.ts
|
|
4
|
+
*/
|
|
5
|
+
export declare const EDITORIAL_WORKFLOW_STATUS: {
|
|
6
|
+
readonly QUEUED: "queued";
|
|
7
|
+
readonly PROCESSING: "processing";
|
|
8
|
+
readonly SETTING_UP: "setting_up";
|
|
9
|
+
readonly CREATING_BRANCH: "creating_branch";
|
|
10
|
+
readonly INDEXING: "indexing";
|
|
11
|
+
readonly CONTENT_GENERATION: "content_generation";
|
|
12
|
+
readonly CREATING_PR: "creating_pr";
|
|
13
|
+
readonly COMPLETE: "complete";
|
|
14
|
+
readonly ERROR: "error";
|
|
15
|
+
readonly TIMEOUT: "timeout";
|
|
16
|
+
};
|
|
17
|
+
export type EditorialWorkflowStatus = (typeof EDITORIAL_WORKFLOW_STATUS)[keyof typeof EDITORIAL_WORKFLOW_STATUS];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tinacms",
|
|
3
|
-
"version": "2.8.
|
|
3
|
+
"version": "2.8.2",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"module": "./dist/index.mjs",
|
|
6
6
|
"exports": {
|
|
@@ -141,9 +141,9 @@
|
|
|
141
141
|
"webfontloader": "1.6.28",
|
|
142
142
|
"yup": "^1.6.1",
|
|
143
143
|
"zod": "^3.24.2",
|
|
144
|
-
"@tinacms/mdx": "1.8.
|
|
145
|
-
"@tinacms/
|
|
146
|
-
"@tinacms/
|
|
144
|
+
"@tinacms/mdx": "1.8.1",
|
|
145
|
+
"@tinacms/schema-tools": "1.9.1",
|
|
146
|
+
"@tinacms/search": "1.1.1"
|
|
147
147
|
},
|
|
148
148
|
"devDependencies": {
|
|
149
149
|
"@graphql-tools/utils": "^10.8.1",
|