tinacms 2.8.0 → 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.
@@ -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 {};
@@ -4,6 +4,7 @@ interface GroupFieldDefinititon extends Field {
4
4
  component: 'group';
5
5
  fields: Field[];
6
6
  defaultItem?: object | (() => object);
7
+ addItemBehavior?: 'append' | 'prepend';
7
8
  /**
8
9
  * An optional function which generates `props` for
9
10
  * this items's `li`.
@@ -10,6 +10,7 @@ interface ListFieldDefinititon extends Field {
10
10
  type?: string;
11
11
  list?: boolean;
12
12
  parentTypename?: string;
13
+ addItemBehavior?: 'append' | 'prepend';
13
14
  /**
14
15
  * An optional function which generates `props` for
15
16
  * this items's `li`.
@@ -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];
@@ -9,6 +9,7 @@ interface NavCollection {
9
9
  interface NavProps {
10
10
  isLocalMode: boolean;
11
11
  showHamburger?: boolean;
12
+ menuIsOpen: boolean;
12
13
  toggleMenu: () => void;
13
14
  children?: any;
14
15
  className?: string;
@@ -40,5 +41,5 @@ interface NavProps {
40
41
  };
41
42
  }>;
42
43
  }
43
- export declare const Nav: ({ isLocalMode, showHamburger, toggleMenu, className, children, showCollections, collectionsInfo, screens, cloudConfigs, contentCreators, sidebarWidth, RenderNavSite, RenderNavCloud, RenderNavCollection, AuthRenderNavCollection, ...props }: NavProps) => React.JSX.Element;
44
+ export declare const Nav: ({ isLocalMode, showHamburger, menuIsOpen, toggleMenu, className, children, showCollections, collectionsInfo, screens, cloudConfigs, contentCreators, sidebarWidth, RenderNavSite, RenderNavCloud, RenderNavCollection, AuthRenderNavCollection, ...props }: NavProps) => React.JSX.Element;
44
45
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tinacms",
3
- "version": "2.8.0",
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.0",
145
- "@tinacms/search": "1.1.0",
146
- "@tinacms/schema-tools": "1.9.0"
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",
@@ -1,2 +0,0 @@
1
- import { FC } from 'react';
2
- export declare const IndexingPage: FC;