tinacms 2.7.7 → 2.7.9

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 (68) hide show
  1. package/dist/admin/components/Page.d.ts +3 -9
  2. package/dist/admin/components/Sidebar.d.ts +0 -3
  3. package/dist/admin/components/ui/tooltip.d.ts +7 -0
  4. package/dist/admin/pages/CollectionCreatePage.d.ts +1 -1
  5. package/dist/admin/pages/CollectionListPage.d.ts +2 -2
  6. package/dist/admin/pages/DashboardPage.d.ts +0 -3
  7. package/dist/admin/pages/ScreenPage.d.ts +0 -3
  8. package/dist/client.js +0 -1
  9. package/dist/client.mjs +0 -1
  10. package/dist/index.js +10969 -10976
  11. package/dist/index.mjs +11076 -11084
  12. package/dist/node-cache-5e8db9f0.mjs +0 -1
  13. package/dist/react.d.ts +13 -6
  14. package/dist/react.js +58 -53
  15. package/dist/react.mjs +58 -53
  16. package/dist/rich-text/index.js +0 -1
  17. package/dist/rich-text/index.mjs +0 -1
  18. package/dist/rich-text/prism.js +0 -1
  19. package/dist/rich-text/prism.mjs +0 -1
  20. package/dist/toolkit/components/media/media-item.d.ts +1 -1
  21. package/dist/toolkit/components/ui/breadcrumb.d.ts +11 -0
  22. package/dist/toolkit/components/ui/dropdown-menu.d.ts +25 -0
  23. package/dist/toolkit/fields/components/password-field.d.ts +1 -1
  24. package/dist/toolkit/fields/components/reference/components/button.d.ts +1 -1
  25. package/dist/toolkit/fields/components/reference/components/popover.d.ts +1 -1
  26. package/dist/toolkit/fields/components/reference/model/reference-link-props.d.ts +2 -0
  27. package/dist/toolkit/fields/components/select.d.ts +2 -2
  28. package/dist/toolkit/fields/components/text-field.d.ts +1 -1
  29. package/dist/toolkit/fields/plugins/group-field-plugin.d.ts +1 -1
  30. package/dist/toolkit/fields/plugins/list-field-meta.d.ts +1 -1
  31. package/dist/toolkit/fields/plugins/mdx-field-plugin/index.d.ts +2 -2
  32. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/transforms/is-url.d.ts +1 -2
  33. package/dist/toolkit/form-builder/fields-builder.d.ts +1 -1
  34. package/dist/toolkit/form-builder/form-builder.d.ts +15 -5
  35. package/dist/toolkit/forms/field.d.ts +3 -0
  36. package/dist/toolkit/forms/form.d.ts +22 -3
  37. package/dist/toolkit/git-client/git-client.d.ts +25 -2
  38. package/dist/toolkit/git-client/git-file.d.ts +18 -0
  39. package/dist/toolkit/git-client/git-media-store.d.ts +13 -0
  40. package/dist/toolkit/git-client/use-git-file.d.ts +4 -0
  41. package/dist/toolkit/icons/Tina.d.ts +0 -5
  42. package/dist/toolkit/index.d.ts +1 -1
  43. package/dist/toolkit/plugin-branch-switcher/branch-button.d.ts +1 -0
  44. package/dist/toolkit/plugin-branch-switcher/index.d.ts +0 -1
  45. package/dist/toolkit/react-sidebar/components/alert.d.ts +5 -0
  46. package/dist/toolkit/react-sidebar/components/form-list.d.ts +1 -1
  47. package/dist/toolkit/react-sidebar/components/nav.d.ts +5 -3
  48. package/dist/toolkit/react-sidebar/components/resize-handle.d.ts +0 -5
  49. package/dist/toolkit/react-sidebar/components/sidebar-body.d.ts +3 -7
  50. package/dist/toolkit/react-sidebar/components/sidebar.d.ts +0 -7
  51. package/dist/toolkit/react-sidebar/components/sync-status.d.ts +5 -8
  52. package/dist/toolkit/react-sidebar/index.d.ts +1 -1
  53. package/dist/toolkit/styles/button.d.ts +2 -2
  54. package/dist/toolkit/tina-state.d.ts +11 -0
  55. package/dist/utils/cn.d.ts +2 -0
  56. package/package.json +6 -6
  57. package/dist/client.js.map +0 -1
  58. package/dist/client.mjs.map +0 -1
  59. package/dist/index.js.map +0 -1
  60. package/dist/index.mjs.map +0 -1
  61. package/dist/node-cache-5e8db9f0.mjs.map +0 -1
  62. package/dist/react.js.map +0 -1
  63. package/dist/react.mjs.map +0 -1
  64. package/dist/rich-text/index.js.map +0 -1
  65. package/dist/rich-text/index.mjs.map +0 -1
  66. package/dist/rich-text/prism.js.map +0 -1
  67. package/dist/rich-text/prism.mjs.map +0 -1
  68. package/dist/toolkit/plugin-branch-switcher/branch-banner.d.ts +0 -2
@@ -1,17 +1,11 @@
1
- /**
2
-
3
- */
4
1
  import React from 'react';
5
- export declare const PageWrapper: ({ children }: {
2
+ export declare const PageWrapper: ({ headerClassName, children, }: {
3
+ headerClassName?: string;
6
4
  children: React.ReactNode;
7
5
  }) => React.JSX.Element;
8
- export declare const PageHeader: ({ isLocalMode, children, }: {
9
- isLocalMode?: boolean;
6
+ export declare const PageHeader: ({ children, }: {
10
7
  children: React.ReactNode;
11
8
  }) => React.JSX.Element;
12
9
  export declare const PageBody: ({ children }: {
13
10
  children: React.ReactNode;
14
11
  }) => React.JSX.Element;
15
- export declare const PageBodyNarrow: ({ children }: {
16
- children: React.ReactNode;
17
- }) => React.JSX.Element;
@@ -1,6 +1,3 @@
1
- /**
2
-
3
- */
4
1
  import React from 'react';
5
2
  import type { TinaCMS } from '@tinacms/toolkit';
6
3
  export declare const slugify: (text: any) => any;
@@ -0,0 +1,7 @@
1
+ import * as TooltipPrimitive from '@radix-ui/react-tooltip';
2
+ import * as React from 'react';
3
+ declare const TooltipProvider: React.FC<TooltipPrimitive.TooltipProviderProps>;
4
+ declare const Tooltip: React.FC<TooltipPrimitive.TooltipProps>;
5
+ declare const TooltipTrigger: React.ForwardRefExoticComponent<TooltipPrimitive.TooltipTriggerProps & React.RefAttributes<HTMLButtonElement>>;
6
+ declare const TooltipContent: React.ForwardRefExoticComponent<Omit<TooltipPrimitive.TooltipContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
7
+ export { Tooltip, TooltipTrigger, TooltipContent, TooltipProvider };
@@ -1,5 +1,5 @@
1
- import React from 'react';
2
1
  import { Collection } from '@tinacms/schema-tools';
2
+ import React from 'react';
3
3
  import type { TinaCMS } from '@tinacms/toolkit';
4
4
  declare const CollectionCreatePage: () => React.JSX.Element;
5
5
  export declare const RenderForm: ({ cms, collection, folder, templateName, mutationInfo, customDefaults, }: {
@@ -1,8 +1,8 @@
1
+ import type { Collection } from '@tinacms/schema-tools';
2
+ import { type TinaCMS } from '@tinacms/toolkit';
1
3
  import React from 'react';
2
4
  import { type NavigateFunction } from 'react-router-dom';
3
- import { type TinaCMS } from '@tinacms/toolkit';
4
5
  import type { CollectionResponse, DocumentSys } from '../types';
5
- import type { Collection } from '@tinacms/schema-tools';
6
6
  export declare const handleNavigate: (navigate: NavigateFunction, cms: TinaCMS, collection: CollectionResponse, collectionDefinition: Collection<true>, document: DocumentSys) => Promise<any>;
7
7
  declare const CollectionListPage: () => React.JSX.Element;
8
8
  export default CollectionListPage;
@@ -1,6 +1,3 @@
1
- /**
2
-
3
- */
4
1
  import React from 'react';
5
2
  declare const DashboardPage: () => React.JSX.Element;
6
3
  export default DashboardPage;
@@ -1,6 +1,3 @@
1
- /**
2
-
3
- */
4
1
  import React from 'react';
5
2
  declare const ScreenPage: () => React.JSX.Element;
6
3
  export default ScreenPage;
package/dist/client.js CHANGED
@@ -197,4 +197,3 @@
197
197
  exports2.createClient = createClient;
198
198
  Object.defineProperty(exports2, Symbol.toStringTag, { value: "Module" });
199
199
  });
200
- //# sourceMappingURL=client.js.map
package/dist/client.mjs CHANGED
@@ -130,4 +130,3 @@ export {
130
130
  TinaClient,
131
131
  createClient
132
132
  };
133
- //# sourceMappingURL=client.mjs.map