tinacms 0.0.0-e623534-20250401065516 → 0.0.0-e96d36b-20251210035710

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.
Files changed (183) hide show
  1. package/dist/__vite-browser-external-d06ac358.js +4 -0
  2. package/dist/admin/api.d.ts +4 -1
  3. package/dist/admin/components/{Sidebar.d.ts → AdminNav.d.ts} +0 -3
  4. package/dist/admin/components/Page.d.ts +3 -9
  5. package/dist/admin/components/ui/tooltip.d.ts +7 -0
  6. package/dist/admin/pages/CollectionCreatePage.d.ts +1 -1
  7. package/dist/admin/pages/CollectionListPage.d.ts +2 -2
  8. package/dist/admin/pages/DashboardPage.d.ts +0 -3
  9. package/dist/admin/pages/ScreenPage.d.ts +0 -3
  10. package/dist/auth/AuthModal.d.ts +1 -4
  11. package/dist/auth/TinaCloudProvider.d.ts +0 -1
  12. package/dist/client.js +132 -177
  13. package/dist/index.js +122199 -33632
  14. package/dist/internalClient/index.d.ts +26 -1
  15. package/dist/{node-cache-5e8db9f0.mjs → node-cache-c9558e1e.js} +5 -5
  16. package/dist/react.d.ts +13 -6
  17. package/dist/react.js +295 -196
  18. package/dist/rich-text/index.d.ts +6 -0
  19. package/dist/rich-text/index.js +234 -224
  20. package/dist/rich-text/prism.js +16 -18
  21. package/dist/rich-text/static.d.ts +154 -0
  22. package/dist/rich-text/{index.mjs → static.js} +99 -99
  23. package/dist/tina-cms.d.ts +1 -1
  24. package/dist/toolkit/components/ProgressBar.d.ts +11 -0
  25. package/dist/toolkit/components/active-field-indicator.d.ts +1 -0
  26. package/dist/toolkit/components/media/media-item.d.ts +11 -1
  27. package/dist/toolkit/components/ui/breadcrumb.d.ts +11 -0
  28. package/dist/toolkit/components/ui/button.d.ts +11 -0
  29. package/dist/toolkit/components/ui/calendar.d.ts +8 -0
  30. package/dist/toolkit/components/ui/date-time-picker.d.ts +111 -0
  31. package/dist/toolkit/components/ui/dropdown-menu.d.ts +25 -0
  32. package/dist/toolkit/components/ui/input.d.ts +3 -0
  33. package/dist/toolkit/components/ui/popover.d.ts +7 -0
  34. package/dist/toolkit/components/ui/select.d.ts +13 -0
  35. package/dist/toolkit/fields/components/color-picker/block-widget.d.ts +3 -0
  36. package/dist/toolkit/fields/components/color-picker/color-input.d.ts +35 -0
  37. package/dist/toolkit/fields/components/color-picker/color-picker.d.ts +6 -2
  38. package/dist/toolkit/fields/components/color-picker/color-utils.d.ts +37 -0
  39. package/dist/toolkit/fields/components/color-picker/sketch-widget.d.ts +3 -0
  40. package/dist/toolkit/fields/components/password-field.d.ts +1 -1
  41. package/dist/toolkit/fields/components/reference/components/button.d.ts +2 -2
  42. package/dist/toolkit/fields/components/reference/components/command.d.ts +21 -33
  43. package/dist/toolkit/fields/components/reference/components/popover.d.ts +1 -1
  44. package/dist/toolkit/fields/components/reference/model/reference-link-props.d.ts +2 -0
  45. package/dist/toolkit/fields/components/select.d.ts +2 -2
  46. package/dist/toolkit/fields/components/text-field.d.ts +1 -1
  47. package/dist/toolkit/fields/plugins/button-toggle-field-plugin.d.ts +2 -2
  48. package/dist/toolkit/fields/plugins/checkbox-group-field-plugin.d.ts +2 -2
  49. package/dist/toolkit/fields/plugins/color-field-plugin.d.ts +1 -0
  50. package/dist/toolkit/fields/plugins/date-field-plugin.d.ts +0 -2
  51. package/dist/toolkit/fields/plugins/dnd-kit-wrapper.d.ts +49 -0
  52. package/dist/toolkit/fields/plugins/group-field-plugin.d.ts +1 -1
  53. package/dist/toolkit/fields/plugins/group-list-field-plugin.d.ts +3 -1
  54. package/dist/toolkit/fields/plugins/list-field-meta.d.ts +1 -1
  55. package/dist/toolkit/fields/plugins/list-field-plugin.d.ts +3 -0
  56. package/dist/toolkit/fields/plugins/mdx-field-plugin/index.d.ts +2 -2
  57. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/editor.d.ts +20 -18
  58. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/blockquote-element.d.ts +14 -10
  59. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/button.d.ts +5 -5
  60. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/code-block/code-block-element.d.ts +17 -0
  61. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/code-block/error-message.d.ts +6 -0
  62. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/code-block-combobox.d.ts +6 -0
  63. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/code-block-toolbar-button.d.ts +6 -6
  64. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/code-leaf.d.ts +2 -11
  65. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/code-line-element.d.ts +14 -10
  66. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/code-syntax-leaf.d.ts +2 -11
  67. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/command.d.ts +112 -0
  68. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/dialog.d.ts +12 -0
  69. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/dropdown-menu.d.ts +10 -10
  70. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/floating-toolbar.d.ts +2 -2
  71. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/hr-element.d.ts +3 -0
  72. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/hr-toolbar-button.d.ts +18 -0
  73. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/icons.d.ts +2 -1
  74. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/image-toolbar-button.d.ts +6 -6
  75. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/indent-list-toolbar-button.d.ts +6 -19
  76. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/inline-combobox.d.ts +1 -1
  77. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/input.d.ts +3 -3
  78. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/link-element.d.ts +4 -11
  79. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/link-floating-toolbar.d.ts +4 -5
  80. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/link-toolbar-button.d.ts +4 -4
  81. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/list-element.d.ts +28 -11
  82. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/mermaid-element.d.ts +3 -10
  83. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/mermaid-toolbar-button.d.ts +6 -8
  84. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/paragraph-element.d.ts +15 -0
  85. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/popover.d.ts +7 -2
  86. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/quote-toolbar-button.d.ts +6 -6
  87. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/raw-markdown-toolbar-button.d.ts +6 -6
  88. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/resizable.d.ts +24 -21
  89. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/separator.d.ts +2 -2
  90. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/slash-input-element.d.ts +15 -11
  91. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/table/block-selection.d.ts +6 -0
  92. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/table/table-cell-element.d.ts +33 -0
  93. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/{table-dropdown-menu.d.ts → table/table-dropdown-menu.d.ts} +1 -0
  94. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/table/table-element.d.ts +20 -0
  95. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/table/table-row-element.d.ts +15 -0
  96. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/toolbar.d.ts +7 -7
  97. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/use-floating-toolbar-hook.d.ts +10 -0
  98. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/use-floating-toolbar-state.d.ts +22 -0
  99. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/hooks/use-create-editor.d.ts +6 -0
  100. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/core/autoformat/autoformat-block.d.ts +1 -1
  101. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/core/autoformat/autoformat-lists.d.ts +1 -1
  102. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/core/autoformat/autoformat-marks.d.ts +1 -1
  103. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/core/autoformat/autoformat-utils.d.ts +3 -5
  104. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/core/common.d.ts +11 -6
  105. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/core/formatting.d.ts +18 -2
  106. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/core/index.d.ts +0 -1
  107. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/create-html-block/index.d.ts +6 -0
  108. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/create-img-plugin/index.d.ts +2 -2
  109. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/create-invalid-markdown-plugin/index.d.ts +5 -5
  110. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/create-mdx-plugins/component.d.ts +7 -4
  111. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/create-mdx-plugins/index.d.ts +3 -5
  112. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/editor-plugins.d.ts +520 -0
  113. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/ui/components.d.ts +262 -207
  114. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/ui/floating-toolbar-plugin.d.ts +1 -0
  115. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/toolbar/toolbar-overrides.d.ts +1 -1
  116. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/transforms/is-url.d.ts +1 -2
  117. package/dist/toolkit/fields/plugins/radio-group-field-plugin.d.ts +2 -2
  118. package/dist/toolkit/fields/plugins/select-field-plugin.d.ts +2 -2
  119. package/dist/toolkit/fields/plugins/toggle-field-plugin.d.ts +2 -2
  120. package/dist/toolkit/fields/plugins/wrap-field-with-meta.d.ts +6 -2
  121. package/dist/toolkit/form-builder/create-branch-modal.d.ts +13 -0
  122. package/dist/toolkit/form-builder/editorial-workflow-constants.d.ts +17 -0
  123. package/dist/toolkit/form-builder/fields-builder.d.ts +3 -2
  124. package/dist/toolkit/form-builder/form-builder.d.ts +9 -9
  125. package/dist/toolkit/form-builder/index.d.ts +1 -0
  126. package/dist/toolkit/forms/field.d.ts +5 -1
  127. package/dist/toolkit/forms/form.d.ts +22 -3
  128. package/dist/toolkit/git-client/git-client.d.ts +25 -2
  129. package/dist/toolkit/git-client/git-file.d.ts +18 -0
  130. package/dist/toolkit/git-client/git-media-store.d.ts +13 -0
  131. package/dist/toolkit/git-client/use-git-file.d.ts +4 -0
  132. package/dist/toolkit/icons/Tina.d.ts +0 -5
  133. package/dist/toolkit/icons/TinaExtended.d.ts +4 -0
  134. package/dist/toolkit/icons/index.d.ts +1 -0
  135. package/dist/toolkit/index.d.ts +1 -1
  136. package/dist/toolkit/plugin-branch-switcher/branch-button.d.ts +4 -1
  137. package/dist/toolkit/plugin-branch-switcher/index.d.ts +0 -1
  138. package/dist/toolkit/react-modals/modal/modal-actions.d.ts +2 -1
  139. package/dist/toolkit/react-modals/modal/modal-header.d.ts +1 -1
  140. package/dist/toolkit/react-sidebar/components/NavMenuTrigger.d.ts +11 -0
  141. package/dist/toolkit/react-sidebar/components/VersionInfo.d.ts +2 -0
  142. package/dist/toolkit/react-sidebar/components/badge.d.ts +6 -0
  143. package/dist/toolkit/react-sidebar/components/callout.d.ts +5 -0
  144. package/dist/toolkit/react-sidebar/components/form-list.d.ts +1 -1
  145. package/dist/toolkit/react-sidebar/components/local-warning.d.ts +3 -1
  146. package/dist/toolkit/react-sidebar/components/nav-components.d.ts +11 -0
  147. package/dist/toolkit/react-sidebar/components/nav-context.d.ts +15 -0
  148. package/dist/toolkit/react-sidebar/components/nav.d.ts +6 -3
  149. package/dist/toolkit/react-sidebar/components/resize-handle.d.ts +0 -5
  150. package/dist/toolkit/react-sidebar/components/sidebar-body.d.ts +28 -7
  151. package/dist/toolkit/react-sidebar/components/sidebar.d.ts +0 -7
  152. package/dist/toolkit/react-sidebar/components/sync-status.d.ts +5 -8
  153. package/dist/toolkit/react-sidebar/index.d.ts +4 -1
  154. package/dist/toolkit/styles/button.d.ts +2 -2
  155. package/dist/toolkit/styles/dropdown-button.d.ts +75 -0
  156. package/dist/toolkit/styles/index.d.ts +1 -0
  157. package/dist/toolkit/tina-cms.d.ts +3 -3
  158. package/dist/toolkit/tina-state.d.ts +18 -0
  159. package/dist/unifiedClient/index.d.ts +1 -1
  160. package/dist/utils/cn.d.ts +2 -0
  161. package/dist/utils/index.d.ts +1 -0
  162. package/package.json +54 -71
  163. package/dist/admin/pages/IndexingPage.d.ts +0 -2
  164. package/dist/client.mjs +0 -123
  165. package/dist/index.mjs +0 -35102
  166. package/dist/react.mjs +0 -246
  167. package/dist/rich-text/prism.mjs +0 -16
  168. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/code-block-element.d.ts +0 -11
  169. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/table-cell-element.d.ts +0 -27
  170. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/table-element.d.ts +0 -14
  171. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/table-row-element.d.ts +0 -13
  172. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/core/with-correct-void-behavior.d.ts +0 -8
  173. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/create-code-block/index.d.ts +0 -3
  174. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/create-link-plugin/index.d.ts +0 -15
  175. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/custom/mermaid-plugin.d.ts +0 -2
  176. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/soft-break/create-soft-break-plugin.d.ts +0 -7
  177. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/soft-break/index.d.ts +0 -6
  178. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/soft-break/on-key-down-soft-break.d.ts +0 -5
  179. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/soft-break/types.d.ts +0 -11
  180. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/ui/code-block/index.d.ts +0 -11
  181. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/transforms/insert-empty-block.d.ts +0 -2
  182. package/dist/toolkit/plugin-branch-switcher/branch-banner.d.ts +0 -2
  183. package/dist/toolkit/react-datetime/DateTime.d.ts +0 -135
@@ -0,0 +1 @@
1
+ export declare const FloatingToolbarPlugin: import("@udecode/plate/react").PlatePlugin<import("@udecode/plate").PluginConfig<"floating-toolbar", {}, {}, {}, {}>>;
@@ -1,4 +1,4 @@
1
- export type ToolbarOverrideType = 'heading' | 'link' | 'image' | 'quote' | 'ul' | 'ol' | 'code' | 'codeBlock' | 'bold' | 'strikethrough' | 'italic' | 'mermaid' | 'raw' | 'embed' | 'table';
1
+ export type ToolbarOverrideType = 'heading' | 'link' | 'image' | 'quote' | 'ul' | 'ol' | 'code' | 'codeBlock' | 'bold' | 'strikethrough' | 'italic' | 'mermaid' | 'raw' | 'embed' | 'table' | 'hr';
2
2
  export declare const STANDARD_ICON_WIDTH = 32;
3
3
  export declare const HEADING_ICON_WITH_TEXT = 127;
4
4
  export declare const HEADING_ICON_ONLY = 58;
@@ -1,6 +1,5 @@
1
1
  /**
2
- * RegExps. A URL must match #1 and then at least one of #2/#3. Use two levels
3
- * of REs to avoid REDOS.
2
+ * RegExps. A URL must match #1 or #2 or #3 or #4.
4
3
  */
5
4
  /** Loosely validate a URL `string`. */
6
5
  export declare const isUrl: (string: any) => boolean;
@@ -1,6 +1,6 @@
1
- export declare const RadioGroupField: (props: import("./wrap-field-with-meta").InputFieldType<import("../components").RadioGroupProps, {}>) => import("react").JSX.Element;
1
+ export declare const RadioGroupField: (props: import("./wrap-field-with-meta").InputFieldType<import("..").RadioGroupProps, {}>) => import("react").JSX.Element;
2
2
  export declare const RadioGroupFieldPlugin: {
3
3
  name: string;
4
- Component: (props: import("./wrap-field-with-meta").InputFieldType<import("../components").RadioGroupProps, {}>) => import("react").JSX.Element;
4
+ Component: (props: import("./wrap-field-with-meta").InputFieldType<import("..").RadioGroupProps, {}>) => import("react").JSX.Element;
5
5
  validate(value: any, values: any, meta: any, field: any): string;
6
6
  };
@@ -1,8 +1,8 @@
1
- export declare const SelectField: (props: import("./wrap-field-with-meta").InputFieldType<import("../components").SelectProps, {}>) => import("react").JSX.Element;
1
+ export declare const SelectField: (props: import("./wrap-field-with-meta").InputFieldType<import("..").SelectProps, {}>) => import("react").JSX.Element;
2
2
  export declare const SelectFieldPlugin: {
3
3
  name: string;
4
4
  type: string;
5
- Component: (props: import("./wrap-field-with-meta").InputFieldType<import("../components").SelectProps, {}>) => import("react").JSX.Element;
5
+ Component: (props: import("./wrap-field-with-meta").InputFieldType<import("..").SelectProps, {}>) => import("react").JSX.Element;
6
6
  parse: (value?: string) => string;
7
7
  validate(value: any, values: any, meta: any, field: any): string;
8
8
  };
@@ -1,7 +1,7 @@
1
- export declare const ToggleField: (props: import("./wrap-field-with-meta").InputFieldType<import("../components").ToggleProps, {}>) => import("react").JSX.Element;
1
+ export declare const ToggleField: (props: import("./wrap-field-with-meta").InputFieldType<import("..").ToggleProps, {}>) => import("react").JSX.Element;
2
2
  export declare const ToggleFieldPlugin: {
3
3
  name: string;
4
4
  type: string;
5
- Component: (props: import("./wrap-field-with-meta").InputFieldType<import("../components").ToggleProps, {}>) => import("react").JSX.Element;
5
+ Component: (props: import("./wrap-field-with-meta").InputFieldType<import("..").ToggleProps, {}>) => import("react").JSX.Element;
6
6
  validate(value: any, values: any, meta: any, field: any): string;
7
7
  };
@@ -21,11 +21,15 @@ interface FieldMetaProps extends React.HTMLAttributes<HTMLElement> {
21
21
  margin?: boolean;
22
22
  index?: number;
23
23
  tinaForm: Form;
24
+ focusIntent?: boolean;
25
+ hoverIntent?: boolean;
24
26
  }
25
- export declare const FieldMeta: ({ name, label, description, error, margin, children, index, tinaForm, ...props }: FieldMetaProps) => React.JSX.Element;
26
- export declare const FieldWrapper: ({ margin, children, ...props }: {
27
+ export declare const FieldMeta: ({ name, label, description, error, margin, children, index, tinaForm, focusIntent, hoverIntent, ...props }: FieldMetaProps) => React.JSX.Element;
28
+ export declare const FieldWrapper: ({ margin, children, "data-tina-field-active": dataActive, "data-tina-field-hovering": dataHovering, ...restProps }: {
27
29
  margin: boolean;
28
30
  children: React.ReactNode;
31
+ "data-tina-field-active"?: string;
32
+ "data-tina-field-hovering"?: string;
29
33
  } & Partial<React.ComponentPropsWithoutRef<"div">>) => React.JSX.Element;
30
34
  export interface FieldLabel extends React.HTMLAttributes<HTMLLabelElement> {
31
35
  children?: any | any[];
@@ -0,0 +1,13 @@
1
+ import * as React from 'react';
2
+ export declare const CreateBranchModal: ({ close, safeSubmit, path, values, crudType, }: {
3
+ safeSubmit: () => Promise<void>;
4
+ close: () => void;
5
+ path: string;
6
+ values: Record<string, unknown>;
7
+ crudType: string;
8
+ }) => React.JSX.Element;
9
+ export declare const PrefixedTextField: ({ label, prefix, ...props }: {
10
+ [x: string]: any;
11
+ label?: any;
12
+ prefix?: string;
13
+ }) => React.JSX.Element;
@@ -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,12 +1,13 @@
1
+ import { Field, Form } from '../forms';
1
2
  import * as React from 'react';
2
- import { Form, Field } from '../forms';
3
3
  export interface FieldsBuilderProps {
4
4
  form: Form;
5
5
  activeFieldName?: string;
6
+ hoveringFieldName?: string;
6
7
  fields: Field[];
7
8
  padding?: boolean;
8
9
  }
9
- export declare function FieldsBuilder({ form, fields, activeFieldName, padding, }: FieldsBuilderProps): React.JSX.Element;
10
+ export declare function FieldsBuilder({ form, fields, activeFieldName, hoveringFieldName, padding, }: FieldsBuilderProps): React.JSX.Element;
10
11
  export declare const FieldsGroup: ({ padding, children, }: {
11
12
  padding?: boolean;
12
13
  children?: any | any[];
@@ -1,10 +1,11 @@
1
+ import type { Form } from '../forms';
1
2
  import * as React from 'react';
2
3
  import { type FC } from 'react';
3
- import type { Form } from '../forms';
4
4
  export interface FormBuilderProps {
5
5
  form: {
6
6
  tinaForm: Form;
7
7
  activeFieldName?: string;
8
+ hoveringFieldName?: string;
8
9
  };
9
10
  hideFooter?: boolean;
10
11
  label?: string;
@@ -12,13 +13,16 @@ export interface FormBuilderProps {
12
13
  }
13
14
  export declare const FormBuilder: FC<FormBuilderProps>;
14
15
  export declare const FormStatus: ({ pristine }: {
15
- pristine: any;
16
+ pristine: boolean;
16
17
  }) => React.JSX.Element;
17
- export declare const FormWrapper: ({ header, children, id, }: {
18
- header?: React.ReactNode;
19
- children: React.ReactNode;
18
+ export declare const FormWrapper: ({ id, children, }: {
20
19
  id: string;
20
+ children: React.ReactNode;
21
21
  }) => React.JSX.Element;
22
+ /**
23
+ * @deprecated
24
+ * Original misspelt version of CreateBranchModal
25
+ */
22
26
  export declare const CreateBranchModel: ({ close, safeSubmit, relativePath, values, crudType, }: {
23
27
  safeSubmit: () => Promise<void>;
24
28
  close: () => void;
@@ -26,7 +30,3 @@ export declare const CreateBranchModel: ({ close, safeSubmit, relativePath, valu
26
30
  values: Record<string, unknown>;
27
31
  crudType: string;
28
32
  }) => React.JSX.Element;
29
- export declare const PrefixedTextField: ({ prefix, ...props }: {
30
- [x: string]: any;
31
- prefix?: string;
32
- }) => React.JSX.Element;
@@ -7,4 +7,5 @@ export * from './form-portal';
7
7
  export * from './loading-dots';
8
8
  export * from './reset-form';
9
9
  export * from './form-actions';
10
+ export * from './create-branch-modal';
10
11
  export type { FieldRenderProps } from 'react-final-form';
@@ -1,3 +1,4 @@
1
+ import { Parser } from '@tinacms/schema-tools';
1
2
  export type AnyField = Field & {
2
3
  [key: string]: any;
3
4
  };
@@ -7,19 +8,22 @@ export interface Field<F extends Field = AnyField> {
7
8
  description?: string;
8
9
  component: React.FC<any> | string | null;
9
10
  inlineComponent?: React.FC<any>;
11
+ parser?: Parser;
10
12
  parse?: (value: any, name: string, field: F) => any;
11
13
  format?: (value: any, name: string, field: F) => any;
12
14
  validate?(value: any, allValues: any, meta: any, field: Field): string | object | undefined;
13
15
  defaultValue?: any;
16
+ namespace?: string[];
14
17
  fields?: F[];
15
18
  /**
16
19
  * Focus events can come from outside of the component, this is not
17
20
  * a guarantee that the given field will receive focus since that functionality
18
21
  * needs to be built on a per-component basis.
19
22
  *
20
- * This is also a one-way stree. The "active field" for a given form isn't
23
+ * This is also a one-way street. The "active field" for a given form isn't
21
24
  * necessarily updated when a user clicks on a new field. So you can have a
22
25
  * field which is marked as the active field, and have focus on another field
23
26
  */
24
27
  experimental_focusIntent?: boolean;
28
+ hoverIntent?: boolean;
25
29
  }
@@ -1,7 +1,7 @@
1
- import { FormApi, Config, FormState } from 'final-form';
2
- import type { FormSubscription } from 'final-form';
3
1
  import type { Plugin } from '../core';
4
- import { Field, AnyField } from './field';
2
+ import { Config, FormApi, FormState } from 'final-form';
3
+ import type { FormSubscription } from 'final-form';
4
+ import { AnyField, Field } from './field';
5
5
  export type { FormApi };
6
6
  type GlobalOptions = {
7
7
  global: true;
@@ -25,7 +25,16 @@ export interface FormOptions<S, F extends Field = AnyField> extends Config<S> {
25
25
  extraSubscribeValues?: FormSubscription;
26
26
  queries?: string[];
27
27
  crudType?: 'create' | 'update';
28
+ /**
29
+ * @deprecated
30
+ * Misleading name as per https://github.com/tinacms/tinacms/issues/5686#issuecomment-2899840518
31
+ * Use path property instead.
32
+ */
28
33
  relativePath?: string;
34
+ /**
35
+ * Where to save the form within the content directory on next submission.
36
+ */
37
+ path?: string;
29
38
  }
30
39
  export declare class Form<S = any, F extends Field = AnyField> implements Plugin {
31
40
  private _reset;
@@ -42,7 +51,16 @@ export declare class Form<S = any, F extends Field = AnyField> implements Plugin
42
51
  queries: string[];
43
52
  global: GlobalOptions | null;
44
53
  loading: boolean;
54
+ /**
55
+ * @deprecated
56
+ * Misleading name as per https://github.com/tinacms/tinacms/issues/5686#issuecomment-2899840518
57
+ * Use path property instead.
58
+ */
45
59
  relativePath: string;
60
+ /**
61
+ * Where to save the form within the content directory on next submission.
62
+ */
63
+ path: string;
46
64
  crudType?: 'create' | 'update';
47
65
  beforeSubmit?: (values: S) => Promise<void | S>;
48
66
  constructor({ id, label, fields, actions, buttons, global, reset, loadInitialValues, onChange, queries, ...options }: FormOptions<S, F>);
@@ -134,6 +152,7 @@ export declare class Form<S = any, F extends Field = AnyField> implements Plugin
134
152
  label?: string;
135
153
  name?: string;
136
154
  fields: Field[];
155
+ namespace?: string[];
137
156
  };
138
157
  private getFieldGroup;
139
158
  }
@@ -1,3 +1,7 @@
1
+ /**
2
+ * @deprecated as the API is clunky and hard to use. Mutations should now be
3
+ * done via Graphql. This will be removed by July 2025.
4
+ */
1
5
  export declare class GitClient {
2
6
  private baseUrl;
3
7
  constructor(baseUrl: string);
@@ -29,6 +33,9 @@ export declare class GitClient {
29
33
  * @deprecated
30
34
  */
31
35
  isAuthenticated(): boolean;
36
+ /**
37
+ * @deprecated
38
+ */
32
39
  commit(data: {
33
40
  files: string[];
34
41
  message?: string;
@@ -36,15 +43,17 @@ export declare class GitClient {
36
43
  email?: string;
37
44
  }): Promise<Response>;
38
45
  /**
39
- *
40
46
  * TODO: Add return type.
41
47
  * TODO: Remove `catch`
48
+ *
49
+ * @deprecated
42
50
  */
43
51
  push(): Promise<any>;
44
52
  /**
45
- *
46
53
  * TODO: Add return type.
47
54
  * TODO: Remove `catch`
55
+ *
56
+ * @deprecated
48
57
  */
49
58
  writeToDisk(data: {
50
59
  fileRelativePath: string;
@@ -53,6 +62,8 @@ export declare class GitClient {
53
62
  /**
54
63
  * Uploads a File to disk
55
64
  * TODO: Remove `catch`
65
+ *
66
+ * @deprecated
56
67
  */
57
68
  writeMediaToDisk(data: {
58
69
  directory: string;
@@ -62,31 +73,43 @@ export declare class GitClient {
62
73
  * TODO: rename `data.relPath` to `data.fileRelativePath`
63
74
  * TODO: Add return type.
64
75
  * TODO: Remove `catch`
76
+ *
77
+ * @deprecated
65
78
  */
66
79
  deleteFromDisk(data: {
67
80
  relPath: string;
68
81
  }): Promise<any>;
69
82
  /**
70
83
  * Resets the given files.
84
+ *
85
+ * @deprecated
71
86
  */
72
87
  reset(data: {
73
88
  files: string[];
74
89
  }): Promise<Response>;
75
90
  /**
76
91
  * Get the contents of a file or directory on disk.
92
+ *
93
+ * @deprecated
77
94
  */
78
95
  getFile(fileRelativePath: string): Promise<any>;
79
96
  /**
80
97
  * Get the contents of a file for the most recent commit.
98
+ *
99
+ * @deprecated
81
100
  */
82
101
  show(fileRelativePath: string): Promise<any>;
83
102
  /**
84
103
  * Get information about a local branch by name, or the current branch if no
85
104
  * name is specified.
105
+ *
106
+ * @deprecated
86
107
  */
87
108
  branch(name?: string): Promise<any>;
88
109
  /**
89
110
  * Get a list of the names of all local branches.
111
+ *
112
+ * @deprecated
90
113
  */
91
114
  branches(): Promise<any>;
92
115
  }
@@ -1,4 +1,8 @@
1
1
  import { CMS } from '../core';
2
+ /**
3
+ * @deprecated as the API is clunky and hard to use. Mutations should now be
4
+ * done via Graphql. This will be removed by July 2025.
5
+ */
2
6
  export declare class GitFile {
3
7
  private cms;
4
8
  relativePath: string;
@@ -7,10 +11,24 @@ export declare class GitFile {
7
11
  constructor(cms: CMS, relativePath: string, format: (file: any) => string, parse: (content: string) => any);
8
12
  /**
9
13
  * Load the contents of this file at HEAD
14
+ *
15
+ * @deprecated
10
16
  */
11
17
  show: () => Promise<any>;
18
+ /**
19
+ * @deprecated
20
+ */
12
21
  commit: () => Promise<void>;
22
+ /**
23
+ * @deprecated
24
+ */
13
25
  reset: () => void;
26
+ /**
27
+ * @deprecated
28
+ */
14
29
  write: (values: any) => void;
30
+ /**
31
+ * @deprecated
32
+ */
15
33
  private get git();
16
34
  }
@@ -1,11 +1,24 @@
1
1
  import { MediaStore, MediaUploadOptions, Media, MediaListOptions, MediaList } from '../core';
2
2
  import { GitClient } from './git-client';
3
+ /**
4
+ * @deprecated as the API is clunky and hard to use. Mutations should now be
5
+ * done via Graphql. This will be removed by July 2025.
6
+ */
3
7
  export declare class GitMediaStore implements MediaStore {
4
8
  private client;
5
9
  accept: string;
6
10
  constructor(client: GitClient);
11
+ /**
12
+ * @deprecated
13
+ */
7
14
  persist(files: MediaUploadOptions[]): Promise<Media[]>;
15
+ /**
16
+ * @deprecated
17
+ */
8
18
  list(options?: MediaListOptions): Promise<MediaList>;
19
+ /**
20
+ * @deprecated
21
+ */
9
22
  delete(media: Media): Promise<void>;
10
23
  }
11
24
  export declare const nextOffset: (offset: number, limit: number, count: number) => number;
@@ -1,2 +1,6 @@
1
1
  import { GitFile } from './git-file';
2
+ /**
3
+ * @deprecated as the API is clunky and hard to use. Mutations should now be
4
+ * done via Graphql. This will be removed by July 2025.
5
+ */
2
6
  export declare function useGitFile(relativePath: string, format: (file: any) => string, parse: (content: string) => any): GitFile;
@@ -1,8 +1,3 @@
1
- /**
2
-
3
-
4
-
5
- */
6
1
  import * as React from 'react';
7
2
  export declare const TinaIcon: ({ ...props }: {
8
3
  [x: string]: any;
@@ -0,0 +1,4 @@
1
+ import * as React from 'react';
2
+ export declare const TinaExtendedIcon: ({ ...props }: {
3
+ [x: string]: any;
4
+ }) => React.JSX.Element;
@@ -52,3 +52,4 @@ export * from './Folder';
52
52
  export * from './File';
53
53
  export * from './Circle';
54
54
  export * from './CircleCheck';
55
+ export * from './TinaExtended';
@@ -19,7 +19,7 @@ export type { TinaState } from './tina-state';
19
19
  export * from './forms';
20
20
  export * from './icons';
21
21
  export * from './react-dismissible';
22
- export { Nav, LocalWarning, BillingWarning, SyncStatus, } from './react-sidebar';
22
+ export { Nav, NavCloudLink, NavProvider, NavMenuTrigger, useNav, LocalWarning, BillingWarning, SyncStatusButton, } from './react-sidebar';
23
23
  export { useCMS } from './react-core';
24
24
  /**
25
25
  * Custom `tinacms` things
@@ -1,2 +1,5 @@
1
1
  import * as React from 'react';
2
- export declare const BranchButton: () => React.JSX.Element;
2
+ export declare const BranchButton: ({ className }: {
3
+ className?: string;
4
+ }) => React.JSX.Element;
5
+ export declare const BranchPreviewButton: (props: React.ButtonHTMLAttributes<HTMLButtonElement>) => React.JSX.Element;
@@ -2,5 +2,4 @@ export * from './plugin';
2
2
  export * from './types';
3
3
  export * from './branch-switcher';
4
4
  export * from './branch-data';
5
- export * from './branch-banner';
6
5
  export * from './branch-button';
@@ -1,4 +1,5 @@
1
1
  import * as React from 'react';
2
- export declare const ModalActions: ({ children }: {
2
+ export declare const ModalActions: ({ align, children }: {
3
+ align?: string;
3
4
  children: any;
4
5
  }) => React.JSX.Element;
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
2
  export interface ModalHeaderProps {
3
- children: React.ReactChild | React.ReactChild[];
3
+ children: React.ReactNode;
4
4
  close?(): void;
5
5
  }
6
6
  export declare const ModalHeader: ({ children, close }: ModalHeaderProps) => React.JSX.Element;
@@ -0,0 +1,11 @@
1
+ import React from 'react';
2
+ interface NavMenuTriggerProps {
3
+ className?: string;
4
+ label?: string;
5
+ }
6
+ /**
7
+ * A button component that triggers the navigation menu
8
+ * Can be used anywhere within the NavProvider hierarchy
9
+ */
10
+ export declare const NavMenuTrigger: React.FC<NavMenuTriggerProps>;
11
+ export {};
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare const VersionInfo: () => React.JSX.Element;
@@ -0,0 +1,6 @@
1
+ import * as React from 'react';
2
+ export declare const Badge: ({ children, calloutStyle, className, displayIcon, ...props }: {
3
+ children?: React.ReactNode;
4
+ calloutStyle?: "warning" | "info" | "success" | "error";
5
+ displayIcon?: boolean;
6
+ } & React.HTMLProps<HTMLDivElement>) => React.JSX.Element;
@@ -0,0 +1,5 @@
1
+ import * as React from 'react';
2
+ export declare const Callout: ({ children, calloutStyle, className, ...props }: {
3
+ children?: React.ReactNode;
4
+ calloutStyle?: "warning" | "info" | "success" | "error";
5
+ } & React.HTMLProps<HTMLDivElement>) => React.JSX.Element;
@@ -1,5 +1,5 @@
1
- import * as React from 'react';
2
1
  import type { TinaState } from '../../tina-state';
2
+ import * as React from 'react';
3
3
  type FormListItem = TinaState['formLists'][number]['items'][number];
4
4
  export interface FormsListProps {
5
5
  formList: FormListItem[];
@@ -1,3 +1,5 @@
1
1
  import * as React from 'react';
2
- export declare const LocalWarning: () => React.JSX.Element;
2
+ export declare const LocalWarning: ({ className }: {
3
+ className?: string;
4
+ }) => React.JSX.Element;
3
5
  export declare const BillingWarning: () => React.JSX.Element;
@@ -0,0 +1,11 @@
1
+ import React from 'react';
2
+ import type { CloudConfigPlugin } from '../../react-cloud-config';
3
+ interface NavCloudLinkProps {
4
+ config: CloudConfigPlugin;
5
+ }
6
+ /**
7
+ * Shared component for rendering cloud configuration links
8
+ * Used across both admin and sidebar navigation
9
+ */
10
+ export declare const NavCloudLink: React.FC<NavCloudLinkProps>;
11
+ export {};
@@ -0,0 +1,15 @@
1
+ import React, { ReactNode } from 'react';
2
+ export interface NavContextValue {
3
+ menuIsOpen: boolean;
4
+ toggleMenu: () => void;
5
+ openMenu: () => void;
6
+ closeMenu: () => void;
7
+ }
8
+ export declare const NavContext: React.Context<NavContextValue>;
9
+ export declare const useNav: () => NavContextValue;
10
+ interface NavProviderProps {
11
+ children: ReactNode;
12
+ defaultOpen?: boolean;
13
+ }
14
+ export declare const NavProvider: React.FC<NavProviderProps>;
15
+ export {};
@@ -1,6 +1,6 @@
1
- import * as React from 'react';
2
- import type { ScreenPlugin } from '../../react-screens';
3
1
  import type { CloudConfigPlugin } from '../../react-cloud-config';
2
+ import type { ScreenPlugin } from '../../react-screens';
3
+ import * as React from 'react';
4
4
  interface NavCollection {
5
5
  label?: string;
6
6
  name: string;
@@ -8,6 +8,9 @@ interface NavCollection {
8
8
  }
9
9
  interface NavProps {
10
10
  isLocalMode: boolean;
11
+ showHamburger?: boolean;
12
+ menuIsOpen?: boolean;
13
+ toggleMenu?: () => void;
11
14
  children?: any;
12
15
  className?: string;
13
16
  userName?: string;
@@ -38,5 +41,5 @@ interface NavProps {
38
41
  };
39
42
  }>;
40
43
  }
41
- export declare const Nav: ({ isLocalMode, 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: menuIsOpenProp, toggleMenu: toggleMenuProp, className, children, showCollections, collectionsInfo, screens, cloudConfigs, contentCreators, sidebarWidth, RenderNavSite, RenderNavCloud, RenderNavCollection, AuthRenderNavCollection, ...props }: NavProps) => React.JSX.Element;
42
45
  export {};
@@ -1,7 +1,2 @@
1
- /**
2
-
3
-
4
-
5
- */
6
1
  import * as React from 'react';
7
2
  export declare const ResizeHandle: () => React.JSX.Element;
@@ -4,17 +4,38 @@ export interface FormsViewProps {
4
4
  loadingPlaceholder?: React.FC;
5
5
  }
6
6
  export declare const FormsView: ({ loadingPlaceholder }?: FormsViewProps) => React.JSX.Element;
7
- export interface MultiformFormHeaderProps {
7
+ export interface FormHeaderProps {
8
8
  activeForm: {
9
9
  activeFieldName?: string;
10
10
  tinaForm: Form;
11
11
  };
12
+ branch?: string;
13
+ isLocalMode?: boolean;
14
+ repoProvider?: {
15
+ defaultBranchName?: string;
16
+ historyUrl?: (context: {
17
+ relativePath: string;
18
+ branch: string;
19
+ }) => {
20
+ url: string;
21
+ };
22
+ };
12
23
  }
13
- export declare const MultiformFormHeader: ({ activeForm, }: MultiformFormHeaderProps) => React.JSX.Element;
14
- export interface FormHeaderProps {
15
- activeForm: {
16
- activeFieldName?: string;
17
- tinaForm: Form;
24
+ export declare const FormHeader: ({ activeForm, repoProvider, branch, isLocalMode, }: FormHeaderProps) => React.JSX.Element;
25
+ interface RepositoryProviderProps {
26
+ contentRelativePath: string;
27
+ tinaBranch?: string;
28
+ isLocalMode?: boolean;
29
+ defaultBranchName?: string;
30
+ historyUrl?: (context: {
31
+ relativePath: string;
32
+ branch: string;
33
+ }) => {
34
+ url: string;
18
35
  };
19
36
  }
20
- export declare const FormHeader: ({ activeForm }: FormHeaderProps) => React.JSX.Element;
37
+ export declare const FileHistoryProvider: ({ contentRelativePath, tinaBranch, defaultBranchName, historyUrl, isLocalMode, }: RepositoryProviderProps) => React.JSX.Element;
38
+ export declare const FormBreadcrumbs: ({ rootBreadcrumbName, ...props }: {
39
+ rootBreadcrumbName?: string;
40
+ } & React.HTMLAttributes<HTMLDivElement>) => React.JSX.Element;
41
+ export {};