tinacms 0.0.0-c1132cd-20241024060747 → 0.0.0-c19d29e-20251224001156

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 (200) hide show
  1. package/README.md +1 -1
  2. package/dist/admin/api.d.ts +5 -1
  3. package/dist/admin/components/{Sidebar.d.ts → AdminNav.d.ts} +0 -3
  4. package/dist/admin/components/GetCollection.d.ts +2 -2
  5. package/dist/admin/components/Page.d.ts +3 -9
  6. package/dist/admin/components/ui/tooltip.d.ts +7 -0
  7. package/dist/admin/pages/CollectionCreatePage.d.ts +1 -1
  8. package/dist/admin/pages/CollectionListPage.d.ts +2 -2
  9. package/dist/admin/pages/DashboardPage.d.ts +0 -3
  10. package/dist/admin/pages/ScreenPage.d.ts +0 -3
  11. package/dist/admin/types.d.ts +3 -0
  12. package/dist/auth/AuthModal.d.ts +1 -4
  13. package/dist/auth/TinaCloudProvider.d.ts +1 -2
  14. package/dist/cache/node-cache.d.ts +6 -2
  15. package/dist/client.js +243 -148
  16. package/dist/hooks/create-page-plugin.d.ts +1 -1
  17. package/dist/index.d.ts +1 -1
  18. package/dist/index.js +122381 -32381
  19. package/dist/internalClient/index.d.ts +50 -32
  20. package/dist/react.d.ts +14 -6
  21. package/dist/react.js +295 -184
  22. package/dist/rich-text/index.d.ts +6 -0
  23. package/dist/rich-text/index.js +234 -224
  24. package/dist/rich-text/prism.js +16 -18
  25. package/dist/rich-text/static.d.ts +154 -0
  26. package/dist/rich-text/{index.mjs → static.js} +99 -99
  27. package/dist/tina-cms.d.ts +1 -1
  28. package/dist/toolkit/components/ProgressBar.d.ts +11 -0
  29. package/dist/toolkit/components/active-field-indicator.d.ts +1 -0
  30. package/dist/toolkit/components/media/media-item.d.ts +11 -1
  31. package/dist/toolkit/components/media/media-manager.d.ts +1 -1
  32. package/dist/toolkit/components/ui/breadcrumb.d.ts +11 -0
  33. package/dist/toolkit/components/ui/button.d.ts +11 -0
  34. package/dist/toolkit/components/ui/calendar.d.ts +8 -0
  35. package/dist/toolkit/components/ui/date-time-picker.d.ts +111 -0
  36. package/dist/toolkit/components/ui/dropdown-menu.d.ts +25 -0
  37. package/dist/toolkit/components/ui/input.d.ts +3 -0
  38. package/dist/toolkit/components/ui/popover.d.ts +7 -0
  39. package/dist/toolkit/components/ui/select.d.ts +13 -0
  40. package/dist/toolkit/fields/components/color-picker/block-widget.d.ts +3 -0
  41. package/dist/toolkit/fields/components/color-picker/color-input.d.ts +35 -0
  42. package/dist/toolkit/fields/components/color-picker/color-picker.d.ts +6 -2
  43. package/dist/toolkit/fields/components/color-picker/color-utils.d.ts +37 -0
  44. package/dist/toolkit/fields/components/color-picker/sketch-widget.d.ts +3 -0
  45. package/dist/toolkit/fields/components/password-field.d.ts +1 -1
  46. package/dist/toolkit/fields/components/reference/components/button.d.ts +2 -2
  47. package/dist/toolkit/fields/components/reference/components/command.d.ts +21 -33
  48. package/dist/toolkit/fields/components/reference/components/popover.d.ts +1 -1
  49. package/dist/toolkit/fields/components/reference/model/reference-link-props.d.ts +2 -0
  50. package/dist/toolkit/fields/components/reference/reference-select.d.ts +2 -2
  51. package/dist/toolkit/fields/components/select.d.ts +2 -2
  52. package/dist/toolkit/fields/components/text-field.d.ts +1 -1
  53. package/dist/toolkit/fields/plugins/button-toggle-field-plugin.d.ts +2 -2
  54. package/dist/toolkit/fields/plugins/checkbox-group-field-plugin.d.ts +2 -2
  55. package/dist/toolkit/fields/plugins/color-field-plugin.d.ts +1 -0
  56. package/dist/toolkit/fields/plugins/date-field-plugin.d.ts +0 -2
  57. package/dist/toolkit/fields/plugins/dnd-kit-wrapper.d.ts +49 -0
  58. package/dist/toolkit/fields/plugins/group-field-plugin.d.ts +1 -1
  59. package/dist/toolkit/fields/plugins/group-list-field-plugin.d.ts +3 -1
  60. package/dist/toolkit/fields/plugins/list-field-meta.d.ts +1 -1
  61. package/dist/toolkit/fields/plugins/list-field-plugin.d.ts +3 -0
  62. package/dist/toolkit/fields/plugins/mdx-field-plugin/index.d.ts +5 -2
  63. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/editor.d.ts +20 -18
  64. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/blockquote-element.d.ts +14 -10
  65. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/button.d.ts +5 -5
  66. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/code-block/code-block-element.d.ts +17 -0
  67. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/code-block/error-message.d.ts +6 -0
  68. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/code-block-combobox.d.ts +6 -0
  69. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/code-block-toolbar-button.d.ts +6 -6
  70. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/code-leaf.d.ts +2 -11
  71. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/code-line-element.d.ts +14 -10
  72. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/code-syntax-leaf.d.ts +2 -11
  73. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/command.d.ts +112 -0
  74. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/dialog.d.ts +12 -0
  75. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/dropdown-menu.d.ts +10 -10
  76. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/floating-toolbar.d.ts +2 -2
  77. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/hr-element.d.ts +3 -0
  78. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/hr-toolbar-button.d.ts +18 -0
  79. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/icons.d.ts +2 -1
  80. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/image-toolbar-button.d.ts +6 -6
  81. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/indent-list-toolbar-button.d.ts +6 -7
  82. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/inline-combobox.d.ts +1 -1
  83. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/input.d.ts +3 -3
  84. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/link-element.d.ts +4 -11
  85. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/link-floating-toolbar.d.ts +4 -5
  86. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/link-toolbar-button.d.ts +4 -4
  87. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/list-element.d.ts +28 -11
  88. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/mark-toolbar-button.d.ts +4 -18
  89. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/mermaid-element.d.ts +3 -10
  90. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/mermaid-toolbar-button.d.ts +6 -8
  91. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/paragraph-element.d.ts +15 -0
  92. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/popover.d.ts +7 -2
  93. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/quote-toolbar-button.d.ts +6 -6
  94. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/raw-markdown-toolbar-button.d.ts +6 -6
  95. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/resizable.d.ts +24 -21
  96. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/separator.d.ts +2 -2
  97. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/slash-input-element.d.ts +15 -11
  98. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/table/block-selection.d.ts +6 -0
  99. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/table/table-cell-element.d.ts +33 -0
  100. 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
  101. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/table/table-element.d.ts +20 -0
  102. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/table/table-row-element.d.ts +15 -0
  103. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/toolbar.d.ts +7 -7
  104. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/use-floating-toolbar-hook.d.ts +10 -0
  105. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/use-floating-toolbar-state.d.ts +22 -0
  106. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/hooks/use-create-editor.d.ts +6 -0
  107. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/index.d.ts +1 -1
  108. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/core/autoformat/autoformat-block.d.ts +1 -1
  109. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/core/autoformat/autoformat-lists.d.ts +1 -1
  110. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/core/autoformat/autoformat-marks.d.ts +1 -1
  111. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/core/autoformat/autoformat-utils.d.ts +3 -5
  112. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/core/common.d.ts +11 -6
  113. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/core/formatting.d.ts +18 -2
  114. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/core/index.d.ts +0 -1
  115. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/create-html-block/index.d.ts +6 -0
  116. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/create-img-plugin/index.d.ts +2 -2
  117. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/create-invalid-markdown-plugin/index.d.ts +5 -5
  118. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/create-mdx-plugins/component.d.ts +7 -4
  119. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/create-mdx-plugins/index.d.ts +3 -5
  120. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/editor-plugins.d.ts +520 -0
  121. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/ui/components.d.ts +263 -212
  122. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/ui/floating-toolbar-plugin.d.ts +1 -0
  123. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/toolbar/toolbar-overrides.d.ts +5 -1
  124. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/toolbar/toolbar-provider.d.ts +2 -2
  125. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/transforms/is-url.d.ts +1 -2
  126. package/dist/toolkit/fields/plugins/radio-group-field-plugin.d.ts +2 -2
  127. package/dist/toolkit/fields/plugins/select-field-plugin.d.ts +2 -2
  128. package/dist/toolkit/fields/plugins/toggle-field-plugin.d.ts +2 -2
  129. package/dist/toolkit/fields/plugins/wrap-field-with-meta.d.ts +14 -2
  130. package/dist/toolkit/form-builder/create-branch-modal.d.ts +13 -0
  131. package/dist/toolkit/form-builder/editorial-workflow-constants.d.ts +17 -0
  132. package/dist/toolkit/form-builder/fields-builder.d.ts +3 -2
  133. package/dist/toolkit/form-builder/form-builder.d.ts +9 -9
  134. package/dist/toolkit/form-builder/index.d.ts +1 -0
  135. package/dist/toolkit/forms/field.d.ts +6 -2
  136. package/dist/toolkit/forms/form.d.ts +22 -3
  137. package/dist/toolkit/git-client/git-client.d.ts +25 -2
  138. package/dist/toolkit/git-client/git-file.d.ts +18 -0
  139. package/dist/toolkit/git-client/git-media-store.d.ts +13 -0
  140. package/dist/toolkit/git-client/use-git-file.d.ts +4 -0
  141. package/dist/toolkit/icons/Tina.d.ts +0 -5
  142. package/dist/toolkit/icons/TinaExtended.d.ts +4 -0
  143. package/dist/toolkit/icons/index.d.ts +1 -0
  144. package/dist/toolkit/index.d.ts +1 -1
  145. package/dist/toolkit/plugin-branch-switcher/branch-button.d.ts +4 -1
  146. package/dist/toolkit/plugin-branch-switcher/branch-switcher-legacy.d.ts +1 -1
  147. package/dist/toolkit/plugin-branch-switcher/branch-switcher.d.ts +1 -1
  148. package/dist/toolkit/plugin-branch-switcher/index.d.ts +0 -1
  149. package/dist/toolkit/react-cloud-config/cloud-config-plugin.d.ts +3 -3
  150. package/dist/toolkit/react-modals/modal/modal-actions.d.ts +2 -1
  151. package/dist/toolkit/react-modals/modal/modal-header.d.ts +1 -1
  152. package/dist/toolkit/react-sidebar/components/NavMenuTrigger.d.ts +11 -0
  153. package/dist/toolkit/react-sidebar/components/VersionInfo.d.ts +2 -0
  154. package/dist/toolkit/react-sidebar/components/badge.d.ts +6 -0
  155. package/dist/toolkit/react-sidebar/components/callout.d.ts +5 -0
  156. package/dist/toolkit/react-sidebar/components/form-list.d.ts +1 -1
  157. package/dist/toolkit/react-sidebar/components/local-warning.d.ts +3 -1
  158. package/dist/toolkit/react-sidebar/components/nav-components.d.ts +11 -0
  159. package/dist/toolkit/react-sidebar/components/nav-context.d.ts +15 -0
  160. package/dist/toolkit/react-sidebar/components/nav.d.ts +6 -3
  161. package/dist/toolkit/react-sidebar/components/resize-handle.d.ts +0 -5
  162. package/dist/toolkit/react-sidebar/components/sidebar-body.d.ts +33 -11
  163. package/dist/toolkit/react-sidebar/components/sidebar-loading-placeholder.d.ts +2 -0
  164. package/dist/toolkit/react-sidebar/components/sidebar-no-forms-placeholder.d.ts +2 -0
  165. package/dist/toolkit/react-sidebar/components/sidebar.d.ts +0 -7
  166. package/dist/toolkit/react-sidebar/components/sync-status.d.ts +5 -8
  167. package/dist/toolkit/react-sidebar/index.d.ts +4 -1
  168. package/dist/toolkit/react-sidebar/sidebar.d.ts +2 -2
  169. package/dist/toolkit/styles/button.d.ts +2 -2
  170. package/dist/toolkit/styles/dropdown-button.d.ts +75 -0
  171. package/dist/toolkit/styles/index.d.ts +1 -0
  172. package/dist/toolkit/tina-cms.d.ts +3 -3
  173. package/dist/toolkit/tina-state.d.ts +56 -15
  174. package/dist/unifiedClient/index.d.ts +9 -2
  175. package/dist/utils/cn.d.ts +2 -0
  176. package/dist/utils/index.d.ts +1 -0
  177. package/package.json +90 -114
  178. package/dist/admin/pages/IndexingPage.d.ts +0 -2
  179. package/dist/client.mjs +0 -109
  180. package/dist/index.mjs +0 -33820
  181. package/dist/node-cache-4c336858.mjs +0 -50
  182. package/dist/react.mjs +0 -234
  183. package/dist/rich-text/prism.mjs +0 -16
  184. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/code-block-element.d.ts +0 -11
  185. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/table-cell-element.d.ts +0 -27
  186. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/table-element.d.ts +0 -14
  187. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/table-row-element.d.ts +0 -13
  188. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/core/with-correct-void-behavior.d.ts +0 -8
  189. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/create-code-block/index.d.ts +0 -3
  190. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/create-link-plugin/index.d.ts +0 -15
  191. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/custom/mermaid-plugin.d.ts +0 -2
  192. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/soft-break/create-soft-break-plugin.d.ts +0 -7
  193. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/soft-break/index.d.ts +0 -6
  194. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/soft-break/on-key-down-soft-break.d.ts +0 -5
  195. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/soft-break/types.d.ts +0 -11
  196. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/ui/code-block/index.d.ts +0 -11
  197. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/transforms/insert-empty-block.d.ts +0 -2
  198. package/dist/toolkit/plugin-branch-switcher/branch-banner.d.ts +0 -2
  199. package/dist/toolkit/react-datetime/DateTime.d.ts +0 -135
  200. package/dist/toolkit/react-sidebar/components/no-forms-placeholder.d.ts +0 -8
@@ -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;
@@ -1,19 +1,41 @@
1
- import * as React from 'react';
2
1
  import type { Form } from '../../forms';
3
- export declare const FormsView: ({ children, }: {
4
- children?: React.ReactChild | React.ReactChild[];
5
- }) => React.JSX.Element;
6
- export interface MultiformFormHeaderProps {
7
- activeForm: {
8
- activeFieldName?: string;
9
- tinaForm: Form;
10
- };
2
+ import * as React from 'react';
3
+ export interface FormsViewProps {
4
+ loadingPlaceholder?: React.FC;
11
5
  }
12
- export declare const MultiformFormHeader: ({ activeForm, }: MultiformFormHeaderProps) => React.JSX.Element;
6
+ export declare const FormsView: ({ loadingPlaceholder }?: FormsViewProps) => React.JSX.Element;
13
7
  export interface FormHeaderProps {
14
8
  activeForm: {
15
9
  activeFieldName?: string;
16
10
  tinaForm: Form;
17
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
+ };
23
+ }
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;
35
+ };
18
36
  }
19
- 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 {};
@@ -0,0 +1,2 @@
1
+ import * as React from 'react';
2
+ export declare const SidebarLoadingPlaceholder: () => React.JSX.Element;
@@ -0,0 +1,2 @@
1
+ import * as React from 'react';
2
+ export declare const SidebarNoFormsPlaceholder: () => React.JSX.Element;
@@ -3,7 +3,6 @@ import type { SidebarState, SidebarStateOptions } from '../sidebar';
3
3
  export declare const SidebarContext: React.Context<any>;
4
4
  export declare const minPreviewWidth = 440;
5
5
  export declare const minSidebarWidth = 360;
6
- export declare const navBreakpoint = 1279;
7
6
  export interface SidebarProviderProps {
8
7
  sidebar: SidebarState;
9
8
  resizingSidebar: boolean;
@@ -13,9 +12,3 @@ export interface SidebarProviderProps {
13
12
  defaultState?: SidebarStateOptions['defaultState'];
14
13
  }
15
14
  export declare function SidebarProvider({ position, resizingSidebar, setResizingSidebar, defaultWidth, sidebar, }: SidebarProviderProps): React.JSX.Element;
16
- export declare const updateBodyDisplacement: ({ position, displayState, sidebarWidth, resizingSidebar, }: {
17
- position?: string;
18
- displayState: any;
19
- sidebarWidth: any;
20
- resizingSidebar: any;
21
- }) => void;
@@ -1,5 +1,5 @@
1
- import * as React from 'react';
2
1
  import { TinaCMS } from '../../tina-cms';
2
+ import * as React from 'react';
3
3
  export declare const useGetEvents: (cms: TinaCMS, cursor?: string, existingEvents?: {
4
4
  message: string;
5
5
  id: string;
@@ -18,14 +18,11 @@ export declare const useGetEvents: (cms: TinaCMS, cursor?: string, existingEvent
18
18
  loading: boolean;
19
19
  error: Error;
20
20
  };
21
- export declare const SyncErrorWidget: ({ cms }: {
22
- cms: any;
23
- }) => React.JSX.Element;
24
21
  export declare const SyncStatusModal: ({ closeEventsModal, cms }: {
25
22
  closeEventsModal: any;
26
23
  cms: any;
27
24
  }) => React.JSX.Element;
28
- export declare const SyncStatus: ({ cms, setEventsOpen }: {
29
- cms: any;
30
- setEventsOpen: any;
31
- }) => React.JSX.Element;
25
+ export declare const SyncStatusButton: ({ cms, setEventsOpen, ...buttonProps }: {
26
+ cms: TinaCMS;
27
+ setEventsOpen: (open: boolean) => void;
28
+ } & React.ButtonHTMLAttributes<HTMLButtonElement>) => React.JSX.Element;
@@ -2,4 +2,7 @@ export * from './sidebar';
2
2
  export { SidebarProvider } from './components/sidebar';
3
3
  export { Nav } from './components/nav';
4
4
  export { LocalWarning, BillingWarning } from './components/local-warning';
5
- export { SyncStatus } from './components/sync-status';
5
+ export { SyncStatusButton } from './components/sync-status';
6
+ export { NavCloudLink } from './components/nav-components';
7
+ export { NavProvider, useNav } from './components/nav-context';
8
+ export { NavMenuTrigger } from './components/NavMenuTrigger';
@@ -1,5 +1,5 @@
1
- import { EventBus, Callback } from '../core';
2
1
  import * as React from 'react';
2
+ import { Callback, EventBus } from '../core';
3
3
  export interface SidebarStateOptions {
4
4
  position?: SidebarPosition;
5
5
  buttons?: SidebarButtons;
@@ -22,7 +22,7 @@ export declare type DefaultSidebarState = 'open' | 'closed';
22
22
  export declare class SidebarState {
23
23
  private events;
24
24
  private _isOpen;
25
- placeholder: React.FC;
25
+ loadingPlaceholder: React.FC;
26
26
  defaultState: DefaultSidebarState;
27
27
  position: SidebarPosition;
28
28
  renderNav: boolean;
@@ -1,12 +1,12 @@
1
1
  import * as React from 'react';
2
2
  export interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
3
- variant?: 'primary' | 'secondary' | 'white' | 'ghost' | 'danger';
3
+ variant?: 'primary' | 'secondary' | 'white' | 'ghost' | 'danger' | 'accent' | 'custom';
4
4
  as?: React.ElementType;
5
5
  href?: string;
6
6
  target?: string;
7
7
  size?: 'small' | 'medium' | 'custom';
8
8
  busy?: boolean;
9
- rounded?: 'full' | 'left' | 'right' | 'custom';
9
+ rounded?: 'full' | 'left' | 'right' | 'custom' | 'none';
10
10
  disabled?: boolean;
11
11
  className?: string;
12
12
  children?: React.ReactNode;
@@ -0,0 +1,75 @@
1
+ import * as React from 'react';
2
+ import { ButtonProps } from './button';
3
+ export interface DropdownButtonItem {
4
+ label: string;
5
+ onClick: () => void;
6
+ variant?: 'default' | 'destructive';
7
+ icon?: React.ReactNode;
8
+ disabled?: boolean;
9
+ }
10
+ export interface DropdownButtonProps extends Omit<ButtonProps, 'onClick'> {
11
+ /**
12
+ * The main action to perform when the button is clicked
13
+ */
14
+ onMainAction?: () => void;
15
+ /**
16
+ * Array of dropdown menu items
17
+ */
18
+ items: DropdownButtonItem[];
19
+ /**
20
+ * Whether to show the dropdown arrow in a split button style
21
+ * @default true
22
+ */
23
+ showSplitButton?: boolean;
24
+ /**
25
+ * Alignment of the dropdown menu
26
+ * @default 'end'
27
+ */
28
+ align?: 'start' | 'center' | 'end';
29
+ }
30
+ /**
31
+ * A button component that combines a primary action with a dropdown menu of additional options.
32
+ *
33
+ * This component follows the split-button pattern found in TinaCMS, where the main button
34
+ * performs a primary action and a small arrow button opens a dropdown menu with additional options.
35
+ *
36
+ * @example
37
+ * // Basic usage with split button
38
+ * <DropdownButton
39
+ * variant="primary"
40
+ * onMainAction={() => console.log('Save to new branch')}
41
+ * items={[
42
+ * { label: 'Save to protected branch', onClick: () => console.log('Protected') },
43
+ * { label: 'Save and publish', onClick: () => console.log('Publish') },
44
+ * ]}
45
+ * >
46
+ * Save to new branch
47
+ * </DropdownButton>
48
+ *
49
+ * @example
50
+ * // Dropdown-only button (no main action)
51
+ * <DropdownButton
52
+ * variant="secondary"
53
+ * showSplitButton={false}
54
+ * items={[
55
+ * { label: 'Save to new branch', onClick: () => console.log('New branch') },
56
+ * { label: 'Save to protected branch', onClick: () => console.log('Protected') },
57
+ * ]}
58
+ * >
59
+ * Save options
60
+ * </DropdownButton>
61
+ *
62
+ * @example
63
+ * // With icons and destructive action
64
+ * <DropdownButton
65
+ * variant="primary"
66
+ * onMainAction={() => console.log('Save')}
67
+ * items={[
68
+ * { label: 'Duplicate', onClick: () => console.log('Duplicate'), icon: <CopyIcon /> },
69
+ * { label: 'Delete', onClick: () => console.log('Delete'), variant: 'destructive', icon: <TrashIcon /> },
70
+ * ]}
71
+ * >
72
+ * Save
73
+ * </DropdownButton>
74
+ */
75
+ export declare const DropdownButton: React.ForwardRefExoticComponent<DropdownButtonProps & React.RefAttributes<HTMLButtonElement>>;
@@ -2,3 +2,4 @@ export * from './button';
2
2
  export * from './font-loader';
3
3
  export * from './overflow-menu';
4
4
  export * from './message';
5
+ export * from './dropdown-button';
@@ -1,11 +1,11 @@
1
+ import { Alerts, type EventsToAlerts } from './alerts';
1
2
  import { CMS, type CMSConfig, type PluginType } from './core';
2
3
  import type { FieldPlugin } from './form-builder';
3
- import type { ScreenPlugin } from './react-screens';
4
4
  import type { Form } from './forms';
5
- import { Alerts, type EventsToAlerts } from './alerts';
5
+ import type { ScreenPlugin } from './react-screens';
6
6
  import { SidebarState, type SidebarStateOptions } from './react-sidebar';
7
- import type { TinaAction, TinaState } from './tina-state';
8
7
  import type { Client } from '../internalClient';
8
+ import type { TinaAction, TinaState } from './tina-state';
9
9
  export interface TinaCMSConfig extends CMSConfig {
10
10
  sidebar?: SidebarStateOptions | boolean;
11
11
  alerts?: EventsToAlerts;
@@ -1,5 +1,24 @@
1
1
  import { Form } from './react-tinacms';
2
2
  import { TinaCMS } from './tina-cms';
3
+ export declare const ACTION_TYPES: {
4
+ readonly FORMS_ADD: "forms:add";
5
+ readonly FORMS_REMOVE: "forms:remove";
6
+ readonly FORMS_CLEAR: "forms:clear";
7
+ readonly FORMS_SET_ACTIVE_FORM_ID: "forms:set-active-form-id";
8
+ readonly FORMS_SET_ACTIVE_FIELD_NAME: "forms:set-active-field-name";
9
+ readonly FORMS_SET_HOVERED_FIELD_NAME: "forms:set-hovered-field-name";
10
+ readonly FORM_LISTS_ADD: "form-lists:add";
11
+ readonly FORM_LISTS_REMOVE: "form-lists:remove";
12
+ readonly FORM_LISTS_CLEAR: "form-lists:clear";
13
+ readonly SET_EDIT_MODE: "set-edit-mode";
14
+ readonly INCREMENT_OPERATION_INDEX: "increment-operation-index";
15
+ readonly SET_QUICK_EDITING_SUPPORTED: "set-quick-editing-supported";
16
+ readonly SET_QUICK_EDITING_ENABLED: "set-quick-editing-enabled";
17
+ readonly TOGGLE_QUICK_EDITING_ENABLED: "toggle-quick-editing-enabled";
18
+ readonly TOGGLE_EDIT_STATE: "toggle-edit-state";
19
+ readonly SIDEBAR_SET_DISPLAY_STATE: "sidebar:set-display-state";
20
+ readonly SIDEBAR_SET_LOADING_STATE: "sidebar:set-loading-state";
21
+ };
3
22
  type FormListItem = {
4
23
  type: 'document';
5
24
  path: string;
@@ -15,51 +34,67 @@ type FormList = {
15
34
  items: FormListItem[];
16
35
  formIds: string[];
17
36
  };
37
+ type Breadcrumb = {
38
+ label: string;
39
+ formId: string;
40
+ formName: string;
41
+ namespace: string[];
42
+ };
18
43
  export type TinaAction = {
19
- type: 'forms:add';
44
+ type: typeof ACTION_TYPES.FORMS_ADD;
20
45
  value: Form;
21
46
  } | {
22
- type: 'forms:remove';
47
+ type: typeof ACTION_TYPES.FORMS_REMOVE;
23
48
  value: string;
24
49
  } | {
25
- type: 'forms:clear';
50
+ type: typeof ACTION_TYPES.FORMS_CLEAR;
26
51
  } | {
27
- type: 'form-lists:add';
52
+ type: typeof ACTION_TYPES.FORM_LISTS_ADD;
28
53
  value: FormList;
29
54
  } | {
30
- type: 'form-lists:remove';
55
+ type: typeof ACTION_TYPES.FORM_LISTS_REMOVE;
31
56
  value: string;
32
57
  } | {
33
- type: 'forms:set-active-form-id';
58
+ type: typeof ACTION_TYPES.FORMS_SET_ACTIVE_FORM_ID;
34
59
  value: string;
35
60
  } | {
36
- type: 'forms:set-active-field-name';
61
+ type: typeof ACTION_TYPES.FORMS_SET_ACTIVE_FIELD_NAME;
37
62
  value: {
38
63
  formId: string;
39
64
  fieldName: string;
40
65
  };
41
66
  } | {
42
- type: 'form-lists:clear';
67
+ type: typeof ACTION_TYPES.FORMS_SET_HOVERED_FIELD_NAME;
68
+ value: {
69
+ formId: string;
70
+ fieldName: string | null;
71
+ };
72
+ } | {
73
+ type: typeof ACTION_TYPES.FORM_LISTS_CLEAR;
43
74
  } | {
44
- type: 'set-edit-mode';
75
+ type: typeof ACTION_TYPES.SET_EDIT_MODE;
45
76
  value: 'visual' | 'basic';
46
77
  } | {
47
- type: 'increment-operation-index';
78
+ type: typeof ACTION_TYPES.INCREMENT_OPERATION_INDEX;
48
79
  } | {
49
- type: 'set-quick-editing-supported';
80
+ type: typeof ACTION_TYPES.SET_QUICK_EDITING_SUPPORTED;
50
81
  value: boolean;
51
82
  } | {
52
- type: 'set-quick-editing-enabled';
83
+ type: typeof ACTION_TYPES.SET_QUICK_EDITING_ENABLED;
53
84
  value?: boolean;
54
85
  } | {
55
- type: 'toggle-quick-editing-enabled';
86
+ type: typeof ACTION_TYPES.TOGGLE_QUICK_EDITING_ENABLED;
56
87
  } | {
57
- type: 'toggle-edit-state';
88
+ type: typeof ACTION_TYPES.TOGGLE_EDIT_STATE;
58
89
  } | {
59
- type: 'sidebar:set-display-state';
90
+ type: typeof ACTION_TYPES.SIDEBAR_SET_DISPLAY_STATE;
60
91
  value: TinaState['sidebarDisplayState'] | 'openOrFull';
92
+ } | {
93
+ type: typeof ACTION_TYPES.SIDEBAR_SET_LOADING_STATE;
94
+ value: boolean;
61
95
  };
62
96
  export interface TinaState {
97
+ breadcrumbs: Breadcrumb[];
63
98
  activeFormId: string | null;
64
99
  /**
65
100
  * Forms are wrapped here because we need `activeFieldName` to be reactive, so adding it as a propery
@@ -73,12 +108,18 @@ export interface TinaState {
73
108
  forms: {
74
109
  activeFieldName?: string | null;
75
110
  tinaForm: Form;
111
+ hoveringFieldName?: string | null;
76
112
  }[];
77
113
  formLists: FormList[];
78
114
  editingMode: 'visual' | 'basic';
115
+ isLoadingContent: boolean;
79
116
  quickEditSupported: boolean;
80
117
  sidebarDisplayState: 'closed' | 'open' | 'fullscreen';
81
118
  }
82
119
  export declare const initialState: (cms: TinaCMS) => TinaState;
83
120
  export declare function tinaReducer(state: TinaState, action: TinaAction): TinaState;
121
+ export declare function calculateBreadcrumbs(forms: {
122
+ activeFieldName?: string | null;
123
+ tinaForm: Form;
124
+ }[], activeFormId: string, activeFieldName?: string): Breadcrumb[];
84
125
  export {};
@@ -1,4 +1,6 @@
1
1
  import type { Config } from '@tinacms/schema-tools';
2
+ import AsyncLock from 'async-lock';
3
+ import type { GraphQLError } from 'graphql';
2
4
  import type { Cache } from '../cache/index';
3
5
  export declare const TINA_HOST = "content.tinajs.io";
4
6
  export interface TinaClientArgs<GenQueries = Record<string, unknown>> {
@@ -25,12 +27,17 @@ export declare class TinaClient<GenQueries> {
25
27
  queries: GenQueries;
26
28
  errorPolicy: Config['client']['errorPolicy'];
27
29
  initialized: boolean;
30
+ cacheLock: AsyncLock | undefined;
28
31
  cacheDir: string;
29
- cache: Cache;
32
+ cache: Cache | null;
30
33
  constructor({ token, url, queries, errorPolicy, cacheDir, }: TinaClientArgs<GenQueries>);
31
34
  init(): Promise<void>;
32
35
  request<DataType extends Record<string, any> = any>({ errorPolicy, ...args }: TinaClientRequestArgs, options: {
33
36
  fetchOptions?: Parameters<typeof fetch>[1];
34
- }): Promise<any>;
37
+ }): Promise<{
38
+ data: DataType;
39
+ errors: GraphQLError[] | null;
40
+ query: string;
41
+ }>;
35
42
  }
36
43
  export declare function createClient<GenQueries>(args: TinaClientArgs<GenQueries>): TinaClient<GenQueries>;
@@ -0,0 +1,2 @@
1
+ import { type ClassValue } from 'clsx';
2
+ export declare function cn(...inputs: ClassValue[]): string;
@@ -20,3 +20,4 @@ export interface CreateClientProps {
20
20
  export declare const createClient: ({ clientId, isLocalClient, branch, tinaioConfig, schema, apiUrl, tinaGraphQLVersion, }: CreateClientProps) => Client;
21
21
  export declare function assertShape<T>(value: unknown, yupSchema: (args: typeof yup) => yup.AnySchema, errorMessage?: string): asserts value is T;
22
22
  export declare function safeAssertShape<T>(value: unknown, yupSchema: (args: typeof yup) => yup.AnySchema): boolean;
23
+ export declare const get: (obj: any, path: any, defaultValue?: any) => any;