tinacms 0.0.0-98a61e2-20250707044036 → 0.0.0-98fbc94-20250928224422
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/auth/AuthModal.d.ts +1 -4
- package/dist/auth/TinaCloudProvider.d.ts +0 -1
- package/dist/client.js +2 -2
- package/dist/client.mjs +2 -2
- package/dist/index.js +56184 -55902
- package/dist/index.mjs +56186 -55904
- package/dist/internalClient/index.d.ts +19 -0
- package/dist/tina-cms.d.ts +1 -1
- package/dist/toolkit/components/ProgressBar.d.ts +11 -0
- package/dist/toolkit/components/media/media-item.d.ts +10 -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/dist/toolkit/react-modals/modal/modal-header.d.ts +1 -1
- package/dist/toolkit/react-sidebar/components/badge.d.ts +5 -0
- package/dist/toolkit/react-sidebar/components/callout.d.ts +5 -0
- package/dist/toolkit/react-sidebar/components/nav.d.ts +2 -1
- package/dist/toolkit/styles/button.d.ts +1 -1
- package/package.json +5 -5
- package/dist/admin/pages/IndexingPage.d.ts +0 -2
- package/dist/toolkit/react-sidebar/components/alert.d.ts +0 -5
|
@@ -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 {
|
package/dist/tina-cms.d.ts
CHANGED
|
@@ -9,7 +9,7 @@ import type { TinaCMSProviderDefaultProps } from './types/cms';
|
|
|
9
9
|
export declare const TinaCMSProvider2: ({ query, documentCreatorCallback, formifyCallback, schema, ...props }: TinaCMSProviderDefaultProps) => React.JSX.Element;
|
|
10
10
|
export type DocumentCreatorCallback = Parameters<typeof useDocumentCreatorPlugin>[0];
|
|
11
11
|
/**
|
|
12
|
-
* @deprecated v0.62.0: Use `staticRequest` and a "try catch" block instead. see https://tina.io/docs/
|
|
12
|
+
* @deprecated v0.62.0: Use `staticRequest` and a "try catch" block instead. see https://tina.io/docs/r/content-api-overview for more details
|
|
13
13
|
*
|
|
14
14
|
* A convenience function which makes a GraphQL request
|
|
15
15
|
* to a local GraphQL server and ensures the response fits
|
|
@@ -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 {};
|
|
@@ -7,6 +7,16 @@ interface MediaItemProps {
|
|
|
7
7
|
onClick(_item: Media | false): void;
|
|
8
8
|
active: boolean;
|
|
9
9
|
}
|
|
10
|
+
export declare const checkerboardStyle: {
|
|
11
|
+
backgroundImage: string;
|
|
12
|
+
backgroundSize: string;
|
|
13
|
+
backgroundPosition: string;
|
|
14
|
+
};
|
|
15
|
+
export declare const smallCheckerboardStyle: {
|
|
16
|
+
backgroundImage: string;
|
|
17
|
+
backgroundSize: string;
|
|
18
|
+
backgroundPosition: string;
|
|
19
|
+
};
|
|
10
20
|
export declare function ListMediaItem({ item, onClick, active }: MediaItemProps): React.JSX.Element;
|
|
11
21
|
export declare function GridMediaItem({ item, active, onClick }: MediaItemProps): React.JSX.Element;
|
|
12
22
|
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];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
export interface ModalHeaderProps {
|
|
3
|
-
children: React.
|
|
3
|
+
children: React.ReactNode;
|
|
4
4
|
close?(): void;
|
|
5
5
|
}
|
|
6
6
|
export declare const ModalHeader: ({ children, close }: ModalHeaderProps) => React.JSX.Element;
|
|
@@ -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 {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
export interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
3
|
-
variant?: 'primary' | 'secondary' | 'white' | 'ghost' | 'danger' | 'custom';
|
|
3
|
+
variant?: 'primary' | 'secondary' | 'white' | 'ghost' | 'danger' | 'accent' | 'custom';
|
|
4
4
|
as?: React.ElementType;
|
|
5
5
|
href?: string;
|
|
6
6
|
target?: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tinacms",
|
|
3
|
-
"version": "0.0.0-
|
|
3
|
+
"version": "0.0.0-98fbc94-20250928224422",
|
|
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/
|
|
145
|
-
"@tinacms/
|
|
146
|
-
"@tinacms/search": "
|
|
144
|
+
"@tinacms/schema-tools": "1.9.1",
|
|
145
|
+
"@tinacms/mdx": "1.8.1",
|
|
146
|
+
"@tinacms/search": "1.1.1"
|
|
147
147
|
},
|
|
148
148
|
"devDependencies": {
|
|
149
149
|
"@graphql-tools/utils": "^10.8.1",
|
|
@@ -177,7 +177,7 @@
|
|
|
177
177
|
"typescript": "^5.7.3",
|
|
178
178
|
"vite": "^5.4.14",
|
|
179
179
|
"vitest": "^2.1.9",
|
|
180
|
-
"@tinacms/scripts": "
|
|
180
|
+
"@tinacms/scripts": "1.4.0"
|
|
181
181
|
},
|
|
182
182
|
"peerDependencies": {
|
|
183
183
|
"react": ">=16.14.0",
|